Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3dc48141
Commit
3dc48141
authored
Aug 25, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Aug 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add debug helper function for RegisterSet.
parent
24ab7090
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+1
-0
shader.c
dlls/d3dx9_36/shader.c
+9
-8
util.c
dlls/d3dx9_36/util.c
+14
-0
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
3dc48141
...
...
@@ -91,5 +91,6 @@ HRESULT load_volume_texture_from_dds(IDirect3DVolumeTexture9 *volume_texture, co
/* debug helpers */
const
char
*
debug_d3dxparameter_class
(
D3DXPARAMETER_CLASS
c
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dxparameter_type
(
D3DXPARAMETER_TYPE
t
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dxparameter_registerset
(
D3DXREGISTER_SET
r
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_D3DX9_36_PRIVATE_H */
dlls/d3dx9_36/shader.c
View file @
3dc48141
...
...
@@ -674,8 +674,8 @@ static inline int is_vertex_shader(DWORD version)
static
DWORD
calc_bytes
(
D3DXCONSTANT_DESC
*
desc
)
{
if
(
desc
->
RegisterSet
!=
D3DXRS_FLOAT4
&&
desc
->
RegisterSet
!=
D3DXRS_SAMPLER
)
FIXME
(
"Don't know how to calculate Bytes for constants of type %
d
\n
"
,
de
sc
->
RegisterSet
);
FIXME
(
"Don't know how to calculate Bytes for constants of type %
s
\n
"
,
de
bug_d3dxparameter_registerset
(
desc
->
RegisterSet
)
);
return
4
*
desc
->
Elements
*
desc
->
Rows
*
desc
->
Columns
;
}
...
...
@@ -1064,7 +1064,7 @@ static HRESULT set_scalar_array(ID3DXConstantTable *iface, IDirect3DDevice9 *dev
}
break
;
default:
FIXME
(
"
Handle other register sets
\n
"
);
FIXME
(
"
Unhandled register set %s
\n
"
,
debug_d3dxparameter_registerset
(
desc
.
RegisterSet
)
);
return
E_NOTIMPL
;
}
...
...
@@ -1117,7 +1117,7 @@ static HRESULT set_vector_array(ID3DXConstantTable *iface, IDirect3DDevice9 *dev
}
break
;
default:
FIXME
(
"Unhandled register set %
#x
\n
"
,
desc
.
RegisterSet
);
FIXME
(
"Unhandled register set %
s
\n
"
,
debug_d3dxparameter_registerset
(
desc
.
RegisterSet
)
);
return
E_NOTIMPL
;
}
...
...
@@ -1235,7 +1235,7 @@ static HRESULT set_matrix_array(ID3DXConstantTable *iface, IDirect3DDevice9 *dev
}
break
;
default:
FIXME
(
"Unhandled register set %
#x
\n
"
,
desc
.
RegisterSet
);
FIXME
(
"Unhandled register set %
s
\n
"
,
debug_d3dxparameter_registerset
(
desc
.
RegisterSet
)
);
return
E_NOTIMPL
;
}
...
...
@@ -1340,7 +1340,7 @@ static HRESULT set_matrix_pointer_array(ID3DXConstantTable *iface, IDirect3DDevi
}
break
;
default:
FIXME
(
"Unhandled register set %
#x
\n
"
,
desc
.
RegisterSet
);
FIXME
(
"Unhandled register set %
s
\n
"
,
debug_d3dxparameter_registerset
(
desc
.
RegisterSet
)
);
return
E_NOTIMPL
;
}
...
...
@@ -1599,8 +1599,9 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru
constant
->
desc
.
RegisterSet
=
regset
;
constant
->
desc
.
RegisterIndex
=
index
;
TRACE
(
"name %s, elements %u, index %u, defaultvalue %p
\n
"
,
constant
->
desc
.
Name
,
constant
->
desc
.
Elements
,
index
,
constant
->
desc
.
DefaultValue
);
TRACE
(
"name %s, elements %u, index %u, defaultvalue %p, regset %s
\n
"
,
constant
->
desc
.
Name
,
constant
->
desc
.
Elements
,
index
,
constant
->
desc
.
DefaultValue
,
debug_d3dxparameter_registerset
(
regset
));
TRACE
(
"class %s, type %s, rows %d, columns %d, elements %d, struct_members %d
\n
"
,
debug_d3dxparameter_class
(
type
->
Class
),
debug_d3dxparameter_type
(
type
->
Type
),
type
->
Rows
,
type
->
Columns
,
type
->
Elements
,
type
->
StructMembers
);
...
...
dlls/d3dx9_36/util.c
View file @
3dc48141
...
...
@@ -255,4 +255,18 @@ const char *debug_d3dxparameter_type(D3DXPARAMETER_TYPE t)
}
}
const
char
*
debug_d3dxparameter_registerset
(
D3DXREGISTER_SET
r
)
{
switch
(
r
)
{
WINE_D3DX_TO_STR
(
D3DXRS_BOOL
);
WINE_D3DX_TO_STR
(
D3DXRS_INT4
);
WINE_D3DX_TO_STR
(
D3DXRS_FLOAT4
);
WINE_D3DX_TO_STR
(
D3DXRS_SAMPLER
);
default:
FIXME
(
"Unrecognized D3DXREGISTER_SET %#x.
\n
"
,
r
);
return
"unrecognized"
;
}
}
#undef WINE_D3DX_TO_STR
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment