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
e12f5ff0
Commit
e12f5ff0
authored
Sep 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_state structure to find_ps_compile_args().
parent
8d5a25bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
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
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
e12f5ff0
...
...
@@ -4398,7 +4398,7 @@ static inline void find_arb_ps_compile_args(IWineD3DPixelShaderImpl *shader, IWi
const
struct
wined3d_gl_info
*
gl_info
=
&
((
IWineD3DDeviceImpl
*
)
shader
->
baseShader
.
device
)
->
adapter
->
gl_info
;
const
struct
wined3d_state
*
state
=
&
stateblock
->
state
;
find_ps_compile_args
(
s
hader
,
stateblock
,
&
args
->
super
);
find_ps_compile_args
(
s
tate
,
shader
,
&
args
->
super
);
/* This forces all local boolean constants to 1 to make them stateblock independent */
args
->
bools
=
shader
->
baseShader
.
reg_maps
.
local_bool_consts
;
...
...
dlls/wined3d/glsl_shader.c
View file @
e12f5ff0
...
...
@@ -4293,7 +4293,7 @@ static void set_glsl_shader_program(const struct wined3d_context *context,
struct
vs_compile_args
vs_compile_args
;
if
(
vshader
)
find_vs_compile_args
(
state
,
(
IWineD3DVertexShaderImpl
*
)
vshader
,
&
vs_compile_args
);
if
(
pshader
)
find_ps_compile_args
(
(
IWineD3DPixelShaderImpl
*
)
pshader
,
device
->
stateBlock
,
&
ps_compile_args
);
if
(
pshader
)
find_ps_compile_args
(
state
,
(
IWineD3DPixelShaderImpl
*
)
pshader
,
&
ps_compile_args
);
entry
=
get_glsl_program_entry
(
priv
,
vshader
,
pshader
,
&
vs_compile_args
,
&
ps_compile_args
);
if
(
entry
)
{
...
...
dlls/wined3d/shader.c
View file @
e12f5ff0
...
...
@@ -2067,12 +2067,11 @@ static const IWineD3DPixelShaderVtbl IWineD3DPixelShader_Vtbl =
pixelshader_GetFunction
};
void
find_ps_compile_args
(
IWineD3DPixelShaderImpl
*
shader
,
IWineD3D
StateBlockImpl
*
stateblock
,
struct
ps_compile_args
*
args
)
void
find_ps_compile_args
(
const
struct
wined3d_state
*
state
,
IWineD3D
PixelShaderImpl
*
shader
,
struct
ps_compile_args
*
args
)
{
const
struct
wined3d_state
*
state
=
&
stateblock
->
stat
e
;
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
shader
->
baseShader
.
devic
e
;
IWineD3DBaseTextureImpl
*
texture
;
IWineD3DDeviceImpl
*
device
=
stateblock
->
device
;
UINT
i
;
memset
(
args
,
0
,
sizeof
(
*
args
));
/* FIXME: Make sure all bits are set. */
...
...
dlls/wined3d/wined3d_private.h
View file @
e12f5ff0
...
...
@@ -2915,8 +2915,8 @@ HRESULT pixelshader_init(IWineD3DPixelShaderImpl *shader, IWineD3DDeviceImpl *de
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
void
pixelshader_update_samplers
(
struct
shader_reg_maps
*
reg_maps
,
IWineD3DBaseTexture
*
const
*
textures
)
DECLSPEC_HIDDEN
;
void
find_ps_compile_args
(
IWineD3DPixelShaderImpl
*
shader
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
ps_compile_args
*
args
)
DECLSPEC_HIDDEN
;
void
find_ps_compile_args
(
const
struct
wined3d_state
*
state
,
IWineD3DPixelShaderImpl
*
shader
,
struct
ps_compile_args
*
args
)
DECLSPEC_HIDDEN
;
/* sRGB correction constants */
static
const
float
srgb_cmp
=
0
.
003130
8
f
;
...
...
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