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
0111e15e
Commit
0111e15e
authored
Jul 03, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Jul 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix faulty DCL trace.
parent
1bfec250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
baseshader.c
dlls/wined3d/baseshader.c
+15
-6
No files found.
dlls/wined3d/baseshader.c
View file @
0111e15e
...
...
@@ -432,20 +432,22 @@ void shader_get_registers_used(
}
static
void
shader_dump_decl_usage
(
IWineD3DBaseShaderImpl
*
This
,
DWORD
decl
,
DWORD
param
)
{
DWORD
regtype
=
shader_get_regtype
(
param
);
TRACE
(
"dcl_"
);
TRACE
(
"dcl"
);
if
(
regtype
==
D3DSPR_SAMPLER
)
{
DWORD
ttype
=
decl
&
D3DSP_TEXTURETYPE_MASK
;
switch
(
ttype
)
{
case
D3DSTT_2D
:
TRACE
(
"2d"
);
break
;
case
D3DSTT_CUBE
:
TRACE
(
"cube"
);
break
;
case
D3DSTT_VOLUME
:
TRACE
(
"volume"
);
break
;
default:
TRACE
(
"unknown_ttype(%08lx)"
,
ttype
);
case
D3DSTT_2D
:
TRACE
(
"
_
2d"
);
break
;
case
D3DSTT_CUBE
:
TRACE
(
"
_
cube"
);
break
;
case
D3DSTT_VOLUME
:
TRACE
(
"
_
volume"
);
break
;
default:
TRACE
(
"
_
unknown_ttype(%08lx)"
,
ttype
);
}
}
else
{
...
...
@@ -453,6 +455,13 @@ static void shader_dump_decl_usage(
DWORD
usage
=
decl
&
D3DSP_DCL_USAGE_MASK
;
DWORD
idx
=
(
decl
&
D3DSP_DCL_USAGEINDEX_MASK
)
>>
D3DSP_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
<
D3DPS_VERSION
(
3
,
0
))
return
;
else
TRACE
(
"_"
);
switch
(
usage
)
{
case
D3DDECLUSAGE_POSITION
:
TRACE
(
"%s%ld"
,
"position"
,
idx
);
...
...
@@ -884,7 +893,7 @@ void shader_trace_init(
DWORD
usage
=
*
pToken
;
DWORD
param
=
*
(
pToken
+
1
);
shader_dump_decl_usage
(
usage
,
param
);
shader_dump_decl_usage
(
This
,
usage
,
param
);
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