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
bce3da3a
Commit
bce3da3a
authored
Mar 22, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Mar 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the pixelshader version in the pixelshader object.
parent
c4b44245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
pixelshader.c
dlls/wined3d/pixelshader.c
+7
-7
No files found.
dlls/wined3d/pixelshader.c
View file @
bce3da3a
...
...
@@ -752,8 +752,9 @@ static CONST SHADER_OPCODE pshader_ins [] = {
};
inline
static
const
SHADER_OPCODE
*
pshader_program_get_opcode
(
const
DWORD
code
,
const
int
version
)
{
inline
static
const
SHADER_OPCODE
*
pshader_program_get_opcode
(
IWineD3DPixelShaderImpl
*
This
,
const
DWORD
code
)
{
DWORD
i
=
0
;
DWORD
version
=
This
->
version
;
DWORD
hex_version
=
D3DPS_VERSION
(
version
/
10
,
version
%
10
);
/** TODO: use dichotomic search */
while
(
NULL
!=
pshader_ins
[
i
].
name
)
{
...
...
@@ -764,7 +765,7 @@ inline static const SHADER_OPCODE* pshader_program_get_opcode(const DWORD code,
}
++
i
;
}
FIXME
(
"Unsupported opcode %lx(%ld) masked %lx version %d
\n
"
,
code
,
code
,
code
&
D3DSI_OPCODE_MASK
,
version
);
FIXME
(
"Unsupported opcode %lx(%ld) masked %lx version %
l
d
\n
"
,
code
,
code
,
code
&
D3DSI_OPCODE_MASK
,
version
);
return
NULL
;
}
...
...
@@ -1096,7 +1097,7 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
code = *pToken;
#endif
pInstr
=
pToken
;
curOpcode
=
pshader_program_get_opcode
(
*
pToken
,
versio
n
);
curOpcode
=
pshader_program_get_opcode
(
This
,
*
pToke
n
);
++
pToken
;
if
(
NULL
==
curOpcode
)
{
/* unknown current opcode ... (shouldn't be any!) */
...
...
@@ -1666,13 +1667,12 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *iface, C
const
SHADER_OPCODE
*
curOpcode
=
NULL
;
DWORD
len
=
0
;
DWORD
i
;
int
version
=
0
;
TRACE
(
"(%p) : Parsing programme
\n
"
,
This
);
if
(
NULL
!=
pToken
)
{
while
(
D3DPS_END
()
!=
*
pToken
)
{
if
(
pshader_is_version_token
(
*
pToken
))
{
/** version */
version
=
(((
*
pToken
>>
8
)
&
0x0F
)
*
10
)
+
(
*
pToken
&
0x0F
);
This
->
version
=
(((
*
pToken
>>
8
)
&
0x0F
)
*
10
)
+
(
*
pToken
&
0x0F
);
TRACE
(
"ps_%lu_%lu
\n
"
,
(
*
pToken
>>
8
)
&
0x0F
,
(
*
pToken
&
0x0F
));
++
pToken
;
++
len
;
...
...
@@ -1686,10 +1686,10 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *iface, C
len
+=
comment_len
+
1
;
continue
;
}
if
(
!
version
)
{
if
(
!
This
->
version
)
{
WARN
(
"(%p) : pixel shader doesn't have a valid version identifier
\n
"
,
This
);
}
curOpcode
=
pshader_program_get_opcode
(
*
pToken
,
versio
n
);
curOpcode
=
pshader_program_get_opcode
(
This
,
*
pToke
n
);
++
pToken
;
++
len
;
if
(
NULL
==
curOpcode
)
{
...
...
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