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
ac2805e5
Commit
ac2805e5
authored
Oct 28, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Access reg_maps though ins->ctx in shader_hw_mov().
parent
6c5caf7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+8
-6
No files found.
dlls/wined3d/arb_program_shader.c
View file @
ac2805e5
...
...
@@ -1744,11 +1744,12 @@ static void shader_hw_nop(const struct wined3d_shader_instruction *ins)
static
void
shader_hw_mov
(
const
struct
wined3d_shader_instruction
*
ins
)
{
IWineD3DBaseShaderImpl
*
shader
=
(
IWineD3DBaseShaderImpl
*
)
ins
->
ctx
->
shader
;
BOOL
pshader
=
shader_is_pshader_version
(
shader
->
baseShader
.
reg_maps
.
shader_version
.
type
);
const
struct
shader_reg_maps
*
reg_maps
=
ins
->
ctx
->
reg_maps
;
BOOL
pshader
=
shader_is_pshader_version
(
reg_maps
->
shader_version
.
type
);
struct
shader_arb_ctx_priv
*
ctx
=
ins
->
ctx
->
backend_data
;
const
char
*
zero
=
arb_get_helper_value
(
shader
->
baseShader
.
reg_maps
.
shader_version
.
type
,
ARB_ZERO
);
const
char
*
one
=
arb_get_helper_value
(
shader
->
baseShader
.
reg_maps
.
shader_version
.
type
,
ARB_ONE
);
const
char
*
two
=
arb_get_helper_value
(
shader
->
baseShader
.
reg_maps
.
shader_version
.
type
,
ARB_TWO
);
const
char
*
zero
=
arb_get_helper_value
(
reg_maps
->
shader_version
.
type
,
ARB_ZERO
);
const
char
*
one
=
arb_get_helper_value
(
reg_maps
->
shader_version
.
type
,
ARB_ONE
);
const
char
*
two
=
arb_get_helper_value
(
reg_maps
->
shader_version
.
type
,
ARB_TWO
);
struct
wined3d_shader_buffer
*
buffer
=
ins
->
ctx
->
buffer
;
char
src0_param
[
256
];
...
...
@@ -1787,8 +1788,9 @@ static void shader_hw_mov(const struct wined3d_shader_instruction *ins)
shader_addline
(
buffer
,
"MUL A0_SHADOW%s, TA, A0_SHADOW;
\n
"
,
write_mask
);
((
struct
shader_arb_ctx_priv
*
)
ins
->
ctx
->
backend_data
)
->
addr_reg
[
0
]
=
'\0'
;
}
else
if
(
ins
->
ctx
->
reg_maps
->
shader_version
.
major
==
1
&&
!
shader_is_pshader_version
(
ins
->
ctx
->
reg_maps
->
shader_version
.
type
)
}
else
if
(
reg_maps
->
shader_version
.
major
==
1
&&
!
shader_is_pshader_version
(
reg_maps
->
shader_version
.
type
)
&&
ins
->
dst
[
0
].
reg
.
type
==
WINED3DSPR_ADDR
)
{
src0_param
[
0
]
=
'\0'
;
...
...
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