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
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) {
...
@@ -547,13 +547,13 @@ void shader_dump_ins_modifiers(const DWORD output) {
default:
TRACE
(
"_unhandled_shift(%ld)"
,
shift
);
break
;
default:
TRACE
(
"_unhandled_shift(%ld)"
,
shift
);
break
;
}
}
switch
(
mmask
)
{
if
(
mmask
&
D3DSPDM_SATURATE
)
TRACE
(
"_sat"
);
case
D3DSPDM_NONE
:
break
;
if
(
mmask
&
D3DSPDM_PARTIALPRECISION
)
TRACE
(
"_pp"
)
;
case
D3DSPDM_SATURATE
:
TRACE
(
"_sat"
);
break
;
if
(
mmask
&
D3DSPDM_MSAMPCENTROID
)
TRACE
(
"_centroid"
)
;
case
D3DSPDM_PARTIALPRECISION
:
TRACE
(
"_pp"
);
break
;
case
D3DSPDM_MSAMPCENTROID
:
TRACE
(
"_centroid"
);
break
;
mmask
&=
~
(
D3DSPDM_SATURATE
|
D3DSPDM_PARTIALPRECISION
|
D3DSPDM_MSAMPCENTROID
)
;
default:
TRACE
(
"_unhandled_modifier(%#lx)"
,
mmask
);
break
;
if
(
mmask
)
}
FIXME
(
"_unrecognized_modifier(%#lx)"
,
mmask
>>
D3DSP_DSTMOD_SHIFT
);
}
}
/* TODO: Move other shared code here */
/* 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) {
...
@@ -981,9 +981,13 @@ void pshader_hw_map2gl(SHADER_OPCODE_ARG* arg) {
unsigned
int
i
;
unsigned
int
i
;
char
tmpLine
[
256
];
char
tmpLine
[
256
];
/* Output token related */
char
output_rname
[
256
];
char
output_rname
[
256
];
char
output_wmask
[
20
];
char
output_wmask
[
20
];
BOOL
saturate
=
FALSE
;
BOOL
saturate
=
FALSE
;
BOOL
centroid
=
FALSE
;
BOOL
partialprecision
=
FALSE
;
DWORD
shift
;
DWORD
shift
;
TRACE
(
"Appending glname %s to tmpLine
\n
"
,
curOpcode
->
glname
);
TRACE
(
"Appending glname %s to tmpLine
\n
"
,
curOpcode
->
glname
);
...
@@ -992,17 +996,19 @@ void pshader_hw_map2gl(SHADER_OPCODE_ARG* arg) {
...
@@ -992,17 +996,19 @@ void pshader_hw_map2gl(SHADER_OPCODE_ARG* arg) {
/* Process modifiers */
/* Process modifiers */
if
(
0
!=
(
dst
&
D3DSP_DSTMOD_MASK
))
{
if
(
0
!=
(
dst
&
D3DSP_DSTMOD_MASK
))
{
DWORD
mask
=
dst
&
D3DSP_DSTMOD_MASK
;
DWORD
mask
=
dst
&
D3DSP_DSTMOD_MASK
;
switch
(
mask
)
{
case
D3DSPDM_SATURATE
:
saturate
=
TRUE
;
break
;
saturate
=
mask
&
D3DSPDM_SATURATE
;
#if 0 /* as yet unhandled modifiers */
centroid
=
mask
&
D3DSPDM_MSAMPCENTROID
;
case D3DSPDM_CENTROID: centroid = TRUE; break;
partialprecision
=
mask
&
D3DSPDM_PARTIALPRECISION
;
case D3DSPDM_PP: partialpresision = TRUE; break;
mask
&=
~
(
D3DSPDM_MSAMPCENTROID
|
D3DSPDM_PARTIALPRECISION
|
D3DSPDM_SATURATE
);
#endif
default:
if
(
mask
)
TRACE
(
"_unhandled_modifier(0x%08lx)
\n
"
,
mask
);
FIXME
(
"Unrecognized modifier(0x%#lx)
\n
"
,
mask
>>
D3DSP_DSTMOD_SHIFT
);
}
}
if
(
centroid
)
shift
=
(
dst
&
D3DSP_DSTSHIFT_MASK
)
>>
D3DSP_DSTSHIFT_SHIFT
;
FIXME
(
"Unhandled modifier(0x%#lx)
\n
"
,
mask
>>
D3DSP_DSTMOD_SHIFT
);
}
shift
=
(
dst
&
D3DSP_DSTSHIFT_MASK
)
>>
D3DSP_DSTSHIFT_SHIFT
;
/* Generate input and output registers */
/* Generate input and output registers */
if
(
curOpcode
->
num_params
>
0
)
{
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