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
578df29b
Commit
578df29b
authored
Sep 23, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_state structure to set_tex_op_nvrc().
parent
478a0aae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
nvidia_texture_shader.c
dlls/wined3d/nvidia_texture_shader.c
+5
-5
state.c
dlls/wined3d/state.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-2
No files found.
dlls/wined3d/nvidia_texture_shader.c
View file @
578df29b
...
...
@@ -131,9 +131,9 @@ static void get_src_and_opr_nvrc(DWORD stage, DWORD arg, BOOL is_alpha, GLenum*
*
input
=
d3dta_to_combiner_input
(
arg
&
WINED3DTA_SELECTMASK
,
stage
,
texture_idx
);
}
void
set_tex_op_nvrc
(
IWineD3DDevice
*
iface
,
BOOL
is_alpha
,
int
stage
,
WINED3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
,
INT
texture_idx
,
DWORD
dst
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
struct
wined3d_gl_info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
void
set_tex_op_nvrc
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_state
*
state
,
BOOL
is_alpha
,
int
stage
,
WINED3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
,
INT
texture_idx
,
DWORD
dst
)
{
tex_op_args
tex_op_args
=
{{
0
},
{
0
},
{
0
}};
GLenum
portion
=
is_alpha
?
GL_ALPHA
:
GL_RGB
;
GLenum
target
=
GL_COMBINER0_NV
+
stage
;
...
...
@@ -144,7 +144,7 @@ void set_tex_op_nvrc(IWineD3DDevice *iface, BOOL is_alpha, int stage, WINED3DTEX
/* If a texture stage references an invalid texture unit the stage just
* passes through the result from the previous stage */
if
(
is_invalid_op
(
&
This
->
stateBlock
->
state
,
stage
,
op
,
arg1
,
arg2
,
arg3
))
if
(
is_invalid_op
(
state
,
stage
,
op
,
arg1
,
arg2
,
arg3
))
{
arg1
=
WINED3DTA_CURRENT
;
op
=
WINED3DTOP_SELECTARG1
;
...
...
@@ -538,7 +538,7 @@ static void nvrc_colorop(DWORD state, IWineD3DStateBlockImpl *stateblock, struct
}
/* Set the texture combiners */
set_tex_op_nvrc
(
(
IWineD3DDevice
*
)
stateblock
->
devic
e
,
FALSE
,
stage
,
set_tex_op_nvrc
(
gl_info
,
&
stateblock
->
stat
e
,
FALSE
,
stage
,
stateblock
->
state
.
texture_states
[
stage
][
WINED3DTSS_COLOROP
],
stateblock
->
state
.
texture_states
[
stage
][
WINED3DTSS_COLORARG1
],
stateblock
->
state
.
texture_states
[
stage
][
WINED3DTSS_COLORARG2
],
...
...
dlls/wined3d/state.c
View file @
578df29b
...
...
@@ -3254,7 +3254,7 @@ void tex_alphaop(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d
TRACE
(
"Setting alpha op for stage %d
\n
"
,
stage
);
if
(
gl_info
->
supported
[
NV_REGISTER_COMBINERS
])
{
set_tex_op_nvrc
(
(
IWineD3DDevice
*
)
stateblock
->
devic
e
,
TRUE
,
stage
,
op
,
arg1
,
arg2
,
arg0
,
set_tex_op_nvrc
(
gl_info
,
&
stateblock
->
stat
e
,
TRUE
,
stage
,
op
,
arg1
,
arg2
,
arg0
,
mapped_stage
,
stateblock
->
state
.
texture_states
[
stage
][
WINED3DTSS_RESULTARG
]);
}
else
...
...
dlls/wined3d/wined3d_private.h
View file @
578df29b
...
...
@@ -2641,8 +2641,9 @@ GLenum StencilOp(DWORD op) DECLSPEC_HIDDEN;
GLenum
CompareFunc
(
DWORD
func
)
DECLSPEC_HIDDEN
;
BOOL
is_invalid_op
(
const
struct
wined3d_state
*
state
,
int
stage
,
WINED3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
)
DECLSPEC_HIDDEN
;
void
set_tex_op_nvrc
(
IWineD3DDevice
*
iface
,
BOOL
is_alpha
,
int
stage
,
WINED3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
,
INT
texture_idx
,
DWORD
dst
)
DECLSPEC_HIDDEN
;
void
set_tex_op_nvrc
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_state
*
state
,
BOOL
is_alpha
,
int
stage
,
WINED3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
,
INT
texture_idx
,
DWORD
dst
)
DECLSPEC_HIDDEN
;
void
set_texture_matrix
(
const
float
*
smat
,
DWORD
flags
,
BOOL
calculatedCoords
,
BOOL
transformed
,
enum
wined3d_format_id
coordtype
,
BOOL
ffp_can_disable_proj
)
DECLSPEC_HIDDEN
;
void
texture_activate_dimensions
(
DWORD
stage
,
IWineD3DStateBlockImpl
*
stateblock
,
...
...
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