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
563edce2
Commit
563edce2
authored
Nov 14, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DSHADER_PARAM_SRCMOD_TYPE typedef.
parent
a11a1713
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+7
-4
shader.c
dlls/wined3d/shader.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
563edce2
...
...
@@ -1951,8 +1951,9 @@ static void pshader_hw_tex(const struct wined3d_shader_instruction *ins)
}
else
if
(
shader_version
<
WINED3D_SHADER_VERSION
(
2
,
0
))
{
DWORD
src_mod
=
ins
->
src
[
0
].
modifiers
;
if
(
src_mod
==
WINED3DSPSM_DZ
)
{
enum
wined3d_shader_src_modifier
src_mod
=
ins
->
src
[
0
].
modifiers
;
if
(
src_mod
==
WINED3DSPSM_DZ
)
{
/* TXP cannot handle DZ natively, so move the z coordinate to .w. reg_coord is a read-only
* varying register, so we need a temp reg
*/
...
...
dlls/wined3d/glsl_shader.c
View file @
563edce2
...
...
@@ -1234,7 +1234,8 @@ static const char * const shift_glsl_tab[] = {
};
/* Generate a GLSL parameter that does the input modifier computation and return the input register/mask to use */
static
void
shader_glsl_gen_modifier
(
DWORD
src_modifier
,
const
char
*
in_reg
,
const
char
*
in_regswizzle
,
char
*
out_str
)
static
void
shader_glsl_gen_modifier
(
enum
wined3d_shader_src_modifier
src_modifier
,
const
char
*
in_reg
,
const
char
*
in_regswizzle
,
char
*
out_str
)
{
out_str
[
0
]
=
0
;
...
...
@@ -3054,7 +3055,7 @@ static void shader_glsl_tex(const struct wined3d_shader_instruction *ins)
}
else
if
(
shader_version
<
WINED3D_SHADER_VERSION
(
2
,
0
))
{
DWORD
src_mod
=
ins
->
src
[
0
].
modifiers
;
enum
wined3d_shader_src_modifier
src_mod
=
ins
->
src
[
0
].
modifiers
;
if
(
src_mod
==
WINED3DSPSM_DZ
)
{
sample_flags
|=
WINED3D_GLSL_SAMPLE_PROJECTED
;
...
...
@@ -3187,9 +3188,11 @@ static void shader_glsl_texcoord(const struct wined3d_shader_instruction *ins)
shader_glsl_get_write_mask
(
&
ins
->
dst
[
0
],
dst_mask
);
shader_addline
(
buffer
,
"clamp(gl_TexCoord[%u], 0.0, 1.0)%s);
\n
"
,
ins
->
dst
[
0
].
reg
.
idx
,
dst_mask
);
}
else
{
}
else
{
enum
wined3d_shader_src_modifier
src_mod
=
ins
->
src
[
0
].
modifiers
;
DWORD
reg
=
ins
->
src
[
0
].
reg
.
idx
;
DWORD
src_mod
=
ins
->
src
[
0
].
modifiers
;
char
dst_swizzle
[
6
];
shader_glsl_get_swizzle
(
&
ins
->
src
[
0
],
FALSE
,
write_mask
,
dst_swizzle
);
...
...
dlls/wined3d/shader.c
View file @
563edce2
...
...
@@ -1099,7 +1099,7 @@ void shader_dump_dst_param(const struct wined3d_shader_dst_param *param,
void
shader_dump_src_param
(
const
struct
wined3d_shader_src_param
*
param
,
const
struct
wined3d_shader_version
*
shader_version
)
{
DWORD
src_modifier
=
param
->
modifiers
;
enum
wined3d_shader_src_modifier
src_modifier
=
param
->
modifiers
;
DWORD
swizzle
=
param
->
swizzle
;
if
(
src_modifier
==
WINED3DSPSM_NEG
...
...
dlls/wined3d/wined3d_private.h
View file @
563edce2
...
...
@@ -324,7 +324,7 @@ enum wined3d_immconst_type
#define WINED3DSP_NOSWIZZLE (0 | (1 << 2) | (2 << 4) | (3 << 6))
typedef
enum
_WINED3DSHADER_PARAM_SRCMOD_TYPE
enum
wined3d_shader_src_modifier
{
WINED3DSPSM_NONE
=
0
,
WINED3DSPSM_NEG
=
1
,
...
...
@@ -340,7 +340,7 @@ typedef enum _WINED3DSHADER_PARAM_SRCMOD_TYPE
WINED3DSPSM_ABS
=
11
,
WINED3DSPSM_ABSNEG
=
12
,
WINED3DSPSM_NOT
=
13
,
}
WINED3DSHADER_PARAM_SRCMOD_TYPE
;
};
#define WINED3DSP_WRITEMASK_0 0x1
/* .x r */
#define WINED3DSP_WRITEMASK_1 0x2
/* .y g */
...
...
@@ -617,7 +617,7 @@ struct wined3d_shader_src_param
{
struct
wined3d_shader_register
reg
;
DWORD
swizzle
;
DWORD
modifiers
;
enum
wined3d_shader_src_modifier
modifiers
;
};
struct
wined3d_shader_instruction
...
...
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