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
518de008
Commit
518de008
authored
Mar 23, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Mar 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the D3DSIO_DCL dumping code into its own function.
parent
df9a465b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
102 deletions
+110
-102
pixelshader.c
dlls/wined3d/pixelshader.c
+55
-51
vertexshader.c
dlls/wined3d/vertexshader.c
+55
-51
No files found.
dlls/wined3d/pixelshader.c
View file @
518de008
...
...
@@ -1661,6 +1661,60 @@ inline static void pshader_program_dump_ps_param(const DWORD param, int input) {
}
}
inline
static
void
pshader_program_dump_decl_usage
(
IWineD3DPixelShaderImpl
*
This
,
DWORD
token
)
{
TRACE
(
"dcl_"
);
switch
(
token
&
0xFFFF
)
{
case
D3DDECLUSAGE_POSITION
:
TRACE
(
"%s%ld "
,
"position"
,(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_BLENDINDICES
:
TRACE
(
"%s "
,
"blend"
);
break
;
case
D3DDECLUSAGE_BLENDWEIGHT
:
TRACE
(
"%s "
,
"weight"
);
break
;
case
D3DDECLUSAGE_NORMAL
:
TRACE
(
"%s%ld "
,
"normal"
,(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_PSIZE
:
TRACE
(
"%s "
,
"psize"
);
break
;
case
D3DDECLUSAGE_COLOR
:
if
((
token
&
0xF0000
)
>>
16
==
0
)
{
TRACE
(
"%s "
,
"color"
);
}
else
{
TRACE
(
"%s%ld "
,
"specular"
,
((
token
&
0xF0000
)
>>
16
)
-
1
);
}
break
;
case
D3DDECLUSAGE_TEXCOORD
:
TRACE
(
"%s%ld "
,
"texture"
,
(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_TANGENT
:
TRACE
(
"%s "
,
"tangent"
);
break
;
case
D3DDECLUSAGE_BINORMAL
:
TRACE
(
"%s "
,
"binormal"
);
break
;
case
D3DDECLUSAGE_TESSFACTOR
:
TRACE
(
"%s "
,
"tessfactor"
);
break
;
case
D3DDECLUSAGE_POSITIONT
:
TRACE
(
"%s%ld "
,
"positionT"
,(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_FOG
:
TRACE
(
"%s "
,
"fog"
);
break
;
case
D3DDECLUSAGE_DEPTH
:
TRACE
(
"%s "
,
"depth"
);
break
;
case
D3DDECLUSAGE_SAMPLE
:
TRACE
(
"%s "
,
"sample"
);
break
;
default:
FIXME
(
"Unrecognised dcl %08lx"
,
token
&
0xFFFF
);
}
}
HRESULT
WINAPI
IWineD3DPixelShaderImpl_SetFunction
(
IWineD3DPixelShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
const
DWORD
*
pToken
=
pFunction
;
...
...
@@ -1706,57 +1760,7 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *iface, C
}
else
{
if
(
curOpcode
->
opcode
==
D3DSIO_DCL
)
{
TRACE
(
"dcl_"
);
switch
(
*
pToken
&
0xFFFF
)
{
case
D3DDECLUSAGE_POSITION
:
TRACE
(
"%s%ld "
,
"position"
,(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_BLENDINDICES
:
TRACE
(
"%s "
,
"blend"
);
break
;
case
D3DDECLUSAGE_BLENDWEIGHT
:
TRACE
(
"%s "
,
"weight"
);
break
;
case
D3DDECLUSAGE_NORMAL
:
TRACE
(
"%s%ld "
,
"normal"
,(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_PSIZE
:
TRACE
(
"%s "
,
"psize"
);
break
;
case
D3DDECLUSAGE_COLOR
:
if
((
*
pToken
&
0xF0000
)
>>
16
==
0
)
{
TRACE
(
"%s "
,
"color"
);
}
else
{
TRACE
(
"%s%ld "
,
"specular"
,
((
*
pToken
&
0xF0000
)
>>
16
)
-
1
);
}
break
;
case
D3DDECLUSAGE_TEXCOORD
:
TRACE
(
"%s%ld "
,
"texture"
,
(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_TANGENT
:
TRACE
(
"%s "
,
"tangent"
);
break
;
case
D3DDECLUSAGE_BINORMAL
:
TRACE
(
"%s "
,
"binormal"
);
break
;
case
D3DDECLUSAGE_TESSFACTOR
:
TRACE
(
"%s "
,
"tessfactor"
);
break
;
case
D3DDECLUSAGE_POSITIONT
:
TRACE
(
"%s%ld "
,
"positionT"
,(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_FOG
:
TRACE
(
"%s "
,
"fog"
);
break
;
case
D3DDECLUSAGE_DEPTH
:
TRACE
(
"%s "
,
"depth"
);
break
;
case
D3DDECLUSAGE_SAMPLE
:
TRACE
(
"%s "
,
"sample"
);
break
;
default:
FIXME
(
"Unrecognised dcl %08lx"
,
*
pToken
&
0xFFFF
);
}
pshader_program_dump_decl_usage
(
This
,
*
pToken
);
++
pToken
;
++
len
;
pshader_program_dump_ps_param
(
*
pToken
,
0
);
...
...
dlls/wined3d/vertexshader.c
View file @
518de008
...
...
@@ -879,6 +879,60 @@ inline static void vshader_program_dump_vs_param(const DWORD param, int input) {
}
}
inline
static
void
vshader_program_dump_decl_usage
(
IWineD3DVertexShaderImpl
*
This
,
DWORD
token
)
{
TRACE
(
"dcl_"
);
switch
(
token
&
0xFFFF
)
{
case
D3DDECLUSAGE_POSITION
:
TRACE
(
"%s%ld "
,
"position"
,(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_BLENDINDICES
:
TRACE
(
"%s "
,
"blend"
);
break
;
case
D3DDECLUSAGE_BLENDWEIGHT
:
TRACE
(
"%s "
,
"weight"
);
break
;
case
D3DDECLUSAGE_NORMAL
:
TRACE
(
"%s%ld "
,
"normal"
,(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_PSIZE
:
TRACE
(
"%s "
,
"psize"
);
break
;
case
D3DDECLUSAGE_COLOR
:
if
((
token
&
0xF0000
)
>>
16
==
0
)
{
TRACE
(
"%s "
,
"color"
);
}
else
{
TRACE
(
"%s "
,
"specular"
);
}
break
;
case
D3DDECLUSAGE_TEXCOORD
:
TRACE
(
"%s%ld "
,
"texture"
,
(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_TANGENT
:
TRACE
(
"%s "
,
"tangent"
);
break
;
case
D3DDECLUSAGE_BINORMAL
:
TRACE
(
"%s "
,
"binormal"
);
break
;
case
D3DDECLUSAGE_TESSFACTOR
:
TRACE
(
"%s "
,
"tessfactor"
);
break
;
case
D3DDECLUSAGE_POSITIONT
:
TRACE
(
"%s%ld "
,
"positionT"
,(
token
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_FOG
:
TRACE
(
"%s "
,
"fog"
);
break
;
case
D3DDECLUSAGE_DEPTH
:
TRACE
(
"%s "
,
"depth"
);
break
;
case
D3DDECLUSAGE_SAMPLE
:
TRACE
(
"%s "
,
"sample"
);
break
;
default:
FIXME
(
"Unrecognised dcl %08lx"
,
token
&
0xFFFF
);
}
}
inline
static
BOOL
vshader_is_version_token
(
DWORD
token
)
{
return
0xFFFE0000
==
(
token
&
0xFFFE0000
);
}
...
...
@@ -2102,57 +2156,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_SetFunction(IWineD3DVertexShader *iface,
}
else
{
if
(
curOpcode
->
opcode
==
D3DSIO_DCL
)
{
TRACE
(
"dcl_"
);
switch
(
*
pToken
&
0xFFFF
)
{
case
D3DDECLUSAGE_POSITION
:
TRACE
(
"%s%ld "
,
"position"
,(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_BLENDINDICES
:
TRACE
(
"%s "
,
"blend"
);
break
;
case
D3DDECLUSAGE_BLENDWEIGHT
:
TRACE
(
"%s "
,
"weight"
);
break
;
case
D3DDECLUSAGE_NORMAL
:
TRACE
(
"%s%ld "
,
"normal"
,(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_PSIZE
:
TRACE
(
"%s "
,
"psize"
);
break
;
case
D3DDECLUSAGE_COLOR
:
if
((
*
pToken
&
0xF0000
)
>>
16
==
0
)
{
TRACE
(
"%s "
,
"color"
);
}
else
{
TRACE
(
"%s "
,
"specular"
);
}
break
;
case
D3DDECLUSAGE_TEXCOORD
:
TRACE
(
"%s%ld "
,
"texture"
,
(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_TANGENT
:
TRACE
(
"%s "
,
"tangent"
);
break
;
case
D3DDECLUSAGE_BINORMAL
:
TRACE
(
"%s "
,
"binormal"
);
break
;
case
D3DDECLUSAGE_TESSFACTOR
:
TRACE
(
"%s "
,
"tessfactor"
);
break
;
case
D3DDECLUSAGE_POSITIONT
:
TRACE
(
"%s%ld "
,
"positionT"
,(
*
pToken
&
0xF0000
)
>>
16
);
break
;
case
D3DDECLUSAGE_FOG
:
TRACE
(
"%s "
,
"fog"
);
break
;
case
D3DDECLUSAGE_DEPTH
:
TRACE
(
"%s "
,
"depth"
);
break
;
case
D3DDECLUSAGE_SAMPLE
:
TRACE
(
"%s "
,
"sample"
);
break
;
default
:
FIXME
(
"Unrecognised dcl %08lx"
,
*
pToken
&
0xFFFF
);
}
vshader_program_dump_decl_usage
(
This
,
*
pToken
);
++
pToken
;
++
len
;
vshader_program_dump_vs_param
(
*
pToken
,
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