Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f216dba1
Commit
f216dba1
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 get_loop_control_const().
parent
5b36e292
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
f216dba1
...
@@ -5065,11 +5065,12 @@ static inline BOOL get_bool_const(const struct wined3d_shader_instruction *ins,
...
@@ -5065,11 +5065,12 @@ static inline BOOL get_bool_const(const struct wined3d_shader_instruction *ins,
static
void
get_loop_control_const
(
const
struct
wined3d_shader_instruction
*
ins
,
static
void
get_loop_control_const
(
const
struct
wined3d_shader_instruction
*
ins
,
IWineD3DBaseShaderImpl
*
This
,
UINT
idx
,
struct
wined3d_shader_loop_control
*
loop_control
)
IWineD3DBaseShaderImpl
*
This
,
UINT
idx
,
struct
wined3d_shader_loop_control
*
loop_control
)
{
{
const
struct
shader_reg_maps
*
reg_maps
=
ins
->
ctx
->
reg_maps
;
struct
shader_arb_ctx_priv
*
priv
=
ins
->
ctx
->
backend_data
;
struct
shader_arb_ctx_priv
*
priv
=
ins
->
ctx
->
backend_data
;
/* Integer constants can either be a local constant, or they can be stored in the shader
/* Integer constants can either be a local constant, or they can be stored in the shader
* type specific compile args. */
* type specific compile args. */
if
(
This
->
baseShader
.
reg_maps
.
local_int_consts
&
(
1
<<
idx
))
if
(
reg_maps
->
local_int_consts
&
(
1
<<
idx
))
{
{
const
local_constant
*
constant
;
const
local_constant
*
constant
;
...
@@ -5092,7 +5093,7 @@ static void get_loop_control_const(const struct wined3d_shader_instruction *ins,
...
@@ -5092,7 +5093,7 @@ static void get_loop_control_const(const struct wined3d_shader_instruction *ins,
return
;
return
;
}
}
switch
(
This
->
baseShader
.
reg_maps
.
shader_version
.
type
)
switch
(
reg_maps
->
shader_version
.
type
)
{
{
case
WINED3D_SHADER_TYPE_VERTEX
:
case
WINED3D_SHADER_TYPE_VERTEX
:
/* Count and aL start value are unsigned */
/* Count and aL start value are unsigned */
...
@@ -5109,7 +5110,7 @@ static void get_loop_control_const(const struct wined3d_shader_instruction *ins,
...
@@ -5109,7 +5110,7 @@ static void get_loop_control_const(const struct wined3d_shader_instruction *ins,
break
;
break
;
default:
default:
FIXME
(
"Unhandled shader type %#x.
\n
"
,
This
->
baseShader
.
reg_maps
.
shader_version
.
type
);
FIXME
(
"Unhandled shader type %#x.
\n
"
,
reg_maps
->
shader_version
.
type
);
break
;
break
;
}
}
}
}
...
...
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