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
d4dd9869
Commit
d4dd9869
authored
May 17, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
May 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Allow multiple output modifiers.
parent
c94ecdff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
baseshader.c
dlls/wined3d/baseshader.c
+7
-7
pixelshader.c
dlls/wined3d/pixelshader.c
+17
-11
No files found.
dlls/wined3d/baseshader.c
View file @
d4dd9869
...
...
@@ -547,13 +547,13 @@ void shader_dump_ins_modifiers(const DWORD output) {
default:
TRACE
(
"_unhandled_shift(%ld)"
,
shift
);
break
;
}
switch
(
mmask
)
{
case
D3DSPDM_NONE
:
break
;
case
D3DSPDM_SATURATE
:
TRACE
(
"_sat"
);
break
;
case
D3DSPDM_PARTIALPRECISION
:
TRACE
(
"_pp"
);
break
;
case
D3DSPDM_MSAMPCENTROID
:
TRACE
(
"_centroid"
);
break
;
default:
TRACE
(
"_unhandled_modifier(%#lx)"
,
mmask
);
break
;
}
if
(
mmask
&
D3DSPDM_SATURATE
)
TRACE
(
"_sat"
);
if
(
mmask
&
D3DSPDM_PARTIALPRECISION
)
TRACE
(
"_pp"
)
;
if
(
mmask
&
D3DSPDM_MSAMPCENTROID
)
TRACE
(
"_centroid"
)
;
mmask
&=
~
(
D3DSPDM_SATURATE
|
D3DSPDM_PARTIALPRECISION
|
D3DSPDM_MSAMPCENTROID
)
;
if
(
mmask
)
FIXME
(
"_unrecognized_modifier(%#lx)"
,
mmask
>>
D3DSP_DSTMOD_SHIFT
);
}
/* TODO: Move other shared code here */
dlls/wined3d/pixelshader.c
View file @
d4dd9869
...
...
@@ -981,9 +981,13 @@ void pshader_hw_map2gl(SHADER_OPCODE_ARG* arg) {
unsigned
int
i
;
char
tmpLine
[
256
];
/* Output token related */
char
output_rname
[
256
];
char
output_wmask
[
20
];
BOOL
saturate
=
FALSE
;
BOOL
centroid
=
FALSE
;
BOOL
partialprecision
=
FALSE
;
DWORD
shift
;
TRACE
(
"Appending glname %s to tmpLine
\n
"
,
curOpcode
->
glname
);
...
...
@@ -992,17 +996,19 @@ void pshader_hw_map2gl(SHADER_OPCODE_ARG* arg) {
/* Process modifiers */
if
(
0
!=
(
dst
&
D3DSP_DSTMOD_MASK
))
{
DWORD
mask
=
dst
&
D3DSP_DSTMOD_MASK
;
switch
(
mask
)
{
case
D3DSPDM_SATURATE
:
saturate
=
TRUE
;
break
;
#if 0 /* as yet unhandled modifiers */
case D3DSPDM_CENTROID: centroid = TRUE; break;
case D3DSPDM_PP: partialpresision = TRUE; break;
#endif
default:
TRACE
(
"_unhandled_modifier(0x%08lx)
\n
"
,
mask
);
}
}
shift
=
(
dst
&
D3DSP_DSTSHIFT_MASK
)
>>
D3DSP_DSTSHIFT_SHIFT
;
saturate
=
mask
&
D3DSPDM_SATURATE
;
centroid
=
mask
&
D3DSPDM_MSAMPCENTROID
;
partialprecision
=
mask
&
D3DSPDM_PARTIALPRECISION
;
mask
&=
~
(
D3DSPDM_MSAMPCENTROID
|
D3DSPDM_PARTIALPRECISION
|
D3DSPDM_SATURATE
);
if
(
mask
)
FIXME
(
"Unrecognized modifier(0x%#lx)
\n
"
,
mask
>>
D3DSP_DSTMOD_SHIFT
);
if
(
centroid
)
FIXME
(
"Unhandled modifier(0x%#lx)
\n
"
,
mask
>>
D3DSP_DSTMOD_SHIFT
);
}
shift
=
(
dst
&
D3DSP_DSTSHIFT_MASK
)
>>
D3DSP_DSTSHIFT_SHIFT
;
/* Generate input and output registers */
if
(
curOpcode
->
num_params
>
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