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
e54d9afb
Commit
e54d9afb
authored
Oct 13, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Recognize the SM4 ABS and NEG source modifiers.
parent
50f6fbad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
shader_sm4.c
dlls/wined3d/shader_sm4.c
+23
-2
No files found.
dlls/wined3d/shader_sm4.c
View file @
e54d9afb
...
...
@@ -366,7 +366,29 @@ static void shader_sm4_read_src_param(void *data, const DWORD **ptr, struct wine
if
(
token
&
WINED3D_SM4_REGISTER_MODIFIER
)
{
DWORD
modifier
=
*
(
*
ptr
)
++
;
FIXME
(
"Skipping modifier 0x%08x.
\n
"
,
modifier
);
/* FIXME: This will probably break down at some point. The SM4
* modifiers look like flags, while wined3d currently has an enum
* with possible combinations, e.g. WINED3DSPSM_ABSNEG. */
switch
(
modifier
)
{
case
0x41
:
src_param
->
modifiers
=
WINED3DSPSM_NEG
;
break
;
case
0x81
:
src_param
->
modifiers
=
WINED3DSPSM_ABS
;
break
;
default:
FIXME
(
"Skipping modifier 0x%08x.
\n
"
,
modifier
);
src_param
->
modifiers
=
WINED3DSPSM_NONE
;
break
;
}
}
else
{
src_param
->
modifiers
=
WINED3DSPSM_NONE
;
}
order
=
(
token
&
WINED3D_SM4_REGISTER_ORDER_MASK
)
>>
WINED3D_SM4_REGISTER_ORDER_SHIFT
;
...
...
@@ -409,7 +431,6 @@ static void shader_sm4_read_src_param(void *data, const DWORD **ptr, struct wine
src_param
->
swizzle
=
(
token
&
WINED3D_SM4_SWIZZLE_MASK
)
>>
WINED3D_SM4_SWIZZLE_SHIFT
;
}
src_param
->
modifiers
=
0
;
src_param
->
reg
.
rel_addr
=
NULL
;
map_register
(
priv
,
&
src_param
->
reg
);
...
...
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