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
fc60083e
Commit
fc60083e
authored
Apr 23, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle the destination modifier shift in the frontend rather than the backend.
parent
7448a092
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+2
-2
baseshader.c
dlls/wined3d/baseshader.c
+2
-2
wined3d_private_types.h
dlls/wined3d/wined3d_private_types.h
+4
-4
No files found.
dlls/wined3d/arb_program_shader.c
View file @
fc60083e
...
...
@@ -1000,10 +1000,10 @@ static void shader_hw_map2gl(const struct wined3d_shader_instruction *ins)
partialprecision
=
mask
&
WINED3DSPDM_PARTIALPRECISION
;
mask
&=
~
(
WINED3DSPDM_MSAMPCENTROID
|
WINED3DSPDM_PARTIALPRECISION
|
WINED3DSPDM_SATURATE
);
if
(
mask
)
FIXME
(
"Unrecognized modifier(%#x)
\n
"
,
mask
>>
WINED3DSP_DSTMOD_SHIFT
);
FIXME
(
"Unrecognized modifier(%#x)
\n
"
,
mask
);
if
(
centroid
)
FIXME
(
"Unhandled modifier(%#x)
\n
"
,
mask
>>
WINED3DSP_DSTMOD_SHIFT
);
FIXME
(
"Unhandled modifier(%#x)
\n
"
,
mask
);
}
shift
=
dst
->
shift
;
modifier
=
(
saturate
&&
!
shift
)
?
"_SAT"
:
""
;
...
...
dlls/wined3d/baseshader.c
View file @
fc60083e
...
...
@@ -234,7 +234,7 @@ static void shader_parse_dst_param(DWORD param, const struct wined3d_shader_src_
|
((
param
&
WINED3DSP_REGTYPE_MASK2
)
>>
WINED3DSP_REGTYPE_SHIFT2
);
dst
->
register_idx
=
param
&
WINED3DSP_REGNUM_MASK
;
dst
->
write_mask
=
param
&
WINED3DSP_WRITEMASK_ALL
;
dst
->
modifiers
=
param
&
WINED3DSP_DSTMOD_MASK
;
dst
->
modifiers
=
(
param
&
WINED3DSP_DSTMOD_MASK
)
>>
WINED3DSP_DSTMOD_SHIFT
;
dst
->
shift
=
(
param
&
WINED3DSP_DSTSHIFT_MASK
)
>>
WINED3DSP_DSTSHIFT_SHIFT
;
dst
->
rel_addr
=
rel_addr
;
}
...
...
@@ -966,7 +966,7 @@ static void shader_dump_ins_modifiers(const DWORD output)
mmask
&=
~
(
WINED3DSPDM_SATURATE
|
WINED3DSPDM_PARTIALPRECISION
|
WINED3DSPDM_MSAMPCENTROID
);
if
(
mmask
)
FIXME
(
"_unrecognized_modifier(%#x)"
,
mmask
>>
WINED3DSP_DSTMOD_SHIFT
);
FIXME
(
"_unrecognized_modifier(%#x)"
,
mmask
);
}
void
shader_trace_init
(
const
DWORD
*
pFunction
,
const
SHADER_OPCODE
*
opcode_table
)
...
...
dlls/wined3d/wined3d_private_types.h
View file @
fc60083e
...
...
@@ -136,10 +136,10 @@ typedef enum _WINED3DSHADER_PARAM_SRCMOD_TYPE {
#define WINED3DSP_DSTMOD_MASK (0xF << WINED3DSP_DSTMOD_SHIFT)
typedef
enum
_WINED3DSHADER_PARAM_DSTMOD_TYPE
{
WINED3DSPDM_NONE
=
0
<<
WINED3DSP_DSTMOD_SHIFT
,
WINED3DSPDM_SATURATE
=
1
<<
WINED3DSP_DSTMOD_SHIFT
,
WINED3DSPDM_PARTIALPRECISION
=
2
<<
WINED3DSP_DSTMOD_SHIFT
,
WINED3DSPDM_MSAMPCENTROID
=
4
<<
WINED3DSP_DSTMOD_SHIFT
,
WINED3DSPDM_NONE
=
0
,
WINED3DSPDM_SATURATE
=
1
,
WINED3DSPDM_PARTIALPRECISION
=
2
,
WINED3DSPDM_MSAMPCENTROID
=
4
,
WINED3DSPDM_FORCE_DWORD
=
0x7FFFFFFF
}
WINED3DSHADER_PARAM_DSTMOD_TYPE
;
...
...
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