Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
71a8a77c
Commit
71a8a77c
authored
Dec 04, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass the shader version to shader_dump_decl_usage().
parent
a13df0e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
baseshader.c
dlls/wined3d/baseshader.c
+4
-8
No files found.
dlls/wined3d/baseshader.c
View file @
71a8a77c
...
...
@@ -491,11 +491,8 @@ HRESULT shader_get_registers_used(
return
WINED3D_OK
;
}
static
void
shader_dump_decl_usage
(
IWineD3DBaseShaderImpl
*
This
,
DWORD
decl
,
DWORD
param
)
{
static
void
shader_dump_decl_usage
(
DWORD
decl
,
DWORD
param
,
DWORD
shader_version
)
{
DWORD
regtype
=
shader_get_regtype
(
param
);
TRACE
(
"dcl"
);
...
...
@@ -516,8 +513,7 @@ static void shader_dump_decl_usage(
DWORD
idx
=
(
decl
&
WINED3DSP_DCL_USAGEINDEX_MASK
)
>>
WINED3DSP_DCL_USAGEINDEX_SHIFT
;
/* Pixel shaders 3.0 don't have usage semantics */
char
pshader
=
shader_is_pshader_version
(
This
->
baseShader
.
hex_version
);
if
(
pshader
&&
This
->
baseShader
.
hex_version
<
WINED3DPS_VERSION
(
3
,
0
))
if
(
shader_is_pshader_version
(
shader_version
)
&&
shader_version
<
WINED3DPS_VERSION
(
3
,
0
))
return
;
else
TRACE
(
"_"
);
...
...
@@ -1027,7 +1023,7 @@ void shader_trace_init(
DWORD
usage
=
*
pToken
;
DWORD
param
=
*
(
pToken
+
1
);
shader_dump_decl_usage
(
This
,
usage
,
param
);
shader_dump_decl_usage
(
usage
,
param
,
This
->
baseShader
.
hex_version
);
shader_dump_ins_modifiers
(
param
);
TRACE
(
" "
);
shader_dump_param
(
iface
,
param
,
0
,
0
);
...
...
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