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
dfeee907
Commit
dfeee907
authored
Sep 11, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass the swizzle map to find_vs_compile_args.
parent
057c9832
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
shader.c
dlls/wined3d/shader.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
dfeee907
...
...
@@ -4584,7 +4584,7 @@ static void find_arb_vs_compile_args(const struct wined3d_state *state,
int
i
;
WORD
int_skip
;
find_vs_compile_args
(
state
,
shader
,
&
args
->
super
);
find_vs_compile_args
(
state
,
shader
,
device
->
stream_info
.
swizzle_map
,
&
args
->
super
);
args
->
clip
.
boolclip_compare
=
0
;
if
(
use_ps
(
state
))
...
...
dlls/wined3d/glsl_shader.c
View file @
dfeee907
...
...
@@ -5807,7 +5807,7 @@ static void set_glsl_shader_program(const struct wined3d_context *context, const
struct
vs_compile_args
vs_compile_args
;
vshader
=
state
->
vertex_shader
;
find_vs_compile_args
(
state
,
vshader
,
&
vs_compile_args
);
find_vs_compile_args
(
state
,
vshader
,
device
->
stream_info
.
swizzle_map
,
&
vs_compile_args
);
vs_id
=
find_glsl_vshader
(
context
,
&
priv
->
shader_buffer
,
vshader
,
&
vs_compile_args
);
vs_list
=
&
vshader
->
linked_programs
;
...
...
dlls/wined3d/shader.c
View file @
dfeee907
...
...
@@ -1817,14 +1817,14 @@ HRESULT CDECL wined3d_shader_set_local_constants_float(struct wined3d_shader *sh
return
WINED3D_OK
;
}
void
find_vs_compile_args
(
const
struct
wined3d_state
*
state
,
const
struct
wined3d_shader
*
shader
,
struct
vs_compile_args
*
args
)
void
find_vs_compile_args
(
const
struct
wined3d_state
*
state
,
const
struct
wined3d_shader
*
shader
,
WORD
swizzle_map
,
struct
vs_compile_args
*
args
)
{
args
->
fog_src
=
state
->
render_states
[
WINED3D_RS_FOGTABLEMODE
]
==
WINED3D_FOG_NONE
?
VS_FOG_COORD
:
VS_FOG_Z
;
args
->
clip_enabled
=
state
->
render_states
[
WINED3D_RS_CLIPPING
]
&&
state
->
render_states
[
WINED3D_RS_CLIPPLANEENABLE
];
args
->
swizzle_map
=
s
hader
->
device
->
stream_info
.
s
wizzle_map
;
args
->
swizzle_map
=
swizzle_map
;
}
static
BOOL
match_usage
(
BYTE
usage1
,
BYTE
usage_idx1
,
BYTE
usage2
,
BYTE
usage_idx2
)
...
...
dlls/wined3d/wined3d_private.h
View file @
dfeee907
...
...
@@ -2777,8 +2777,8 @@ void pixelshader_update_samplers(struct wined3d_shader *shader, WORD tex_types)
void
find_ps_compile_args
(
const
struct
wined3d_state
*
state
,
const
struct
wined3d_shader
*
shader
,
struct
ps_compile_args
*
args
)
DECLSPEC_HIDDEN
;
void
find_vs_compile_args
(
const
struct
wined3d_state
*
state
,
const
struct
wined3d_shader
*
shader
,
struct
vs_compile_args
*
args
)
DECLSPEC_HIDDEN
;
void
find_vs_compile_args
(
const
struct
wined3d_state
*
state
,
const
struct
wined3d_shader
*
shader
,
WORD
swizzle_map
,
struct
vs_compile_args
*
args
)
DECLSPEC_HIDDEN
;
void
shader_buffer_clear
(
struct
wined3d_shader_buffer
*
buffer
)
DECLSPEC_HIDDEN
;
BOOL
shader_buffer_init
(
struct
wined3d_shader_buffer
*
buffer
)
DECLSPEC_HIDDEN
;
...
...
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