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
a8504f4f
Commit
a8504f4f
authored
Nov 23, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the special case for loop and rep in shader_get_registers_used().
SM4 loops don't have control parameters.
parent
ca83e14a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
27 deletions
+10
-27
shader.c
dlls/wined3d/shader.c
+10
-27
No files found.
dlls/wined3d/shader.c
View file @
a8504f4f
...
@@ -595,33 +595,6 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
...
@@ -595,33 +595,6 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
list_add_head
(
&
shader
->
constantsB
,
&
lconst
->
entry
);
list_add_head
(
&
shader
->
constantsB
,
&
lconst
->
entry
);
reg_maps
->
local_bool_consts
|=
(
1
<<
dst
.
reg
.
idx
);
reg_maps
->
local_bool_consts
|=
(
1
<<
dst
.
reg
.
idx
);
}
}
/* If there's a loop in the shader. */
else
if
(
ins
.
handler_idx
==
WINED3DSIH_LOOP
||
ins
.
handler_idx
==
WINED3DSIH_REP
)
{
struct
wined3d_shader_src_param
src
,
rel_addr
;
fe
->
shader_read_src_param
(
fe_data
,
&
ptr
,
&
src
,
&
rel_addr
);
/* Rep and Loop always use an integer constant for the control parameters. */
if
(
ins
.
handler_idx
==
WINED3DSIH_REP
)
{
reg_maps
->
integer_constants
|=
1
<<
src
.
reg
.
idx
;
}
else
{
fe
->
shader_read_src_param
(
fe_data
,
&
ptr
,
&
src
,
&
rel_addr
);
reg_maps
->
integer_constants
|=
1
<<
src
.
reg
.
idx
;
}
cur_loop_depth
++
;
if
(
cur_loop_depth
>
max_loop_depth
)
max_loop_depth
=
cur_loop_depth
;
}
else
if
(
ins
.
handler_idx
==
WINED3DSIH_ENDLOOP
||
ins
.
handler_idx
==
WINED3DSIH_ENDREP
)
{
cur_loop_depth
--
;
}
/* For subroutine prototypes. */
/* For subroutine prototypes. */
else
if
(
ins
.
handler_idx
==
WINED3DSIH_LABEL
)
else
if
(
ins
.
handler_idx
==
WINED3DSIH_LABEL
)
{
{
...
@@ -795,6 +768,16 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
...
@@ -795,6 +768,16 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
else
if
(
ins
.
handler_idx
==
WINED3DSIH_IFC
)
reg_maps
->
usesifc
=
1
;
else
if
(
ins
.
handler_idx
==
WINED3DSIH_IFC
)
reg_maps
->
usesifc
=
1
;
else
if
(
ins
.
handler_idx
==
WINED3DSIH_CALL
)
reg_maps
->
usescall
=
1
;
else
if
(
ins
.
handler_idx
==
WINED3DSIH_CALL
)
reg_maps
->
usescall
=
1
;
else
if
(
ins
.
handler_idx
==
WINED3DSIH_POW
)
reg_maps
->
usespow
=
1
;
else
if
(
ins
.
handler_idx
==
WINED3DSIH_POW
)
reg_maps
->
usespow
=
1
;
else
if
(
ins
.
handler_idx
==
WINED3DSIH_LOOP
||
ins
.
handler_idx
==
WINED3DSIH_REP
)
{
++
cur_loop_depth
;
if
(
cur_loop_depth
>
max_loop_depth
)
max_loop_depth
=
cur_loop_depth
;
}
else
if
(
ins
.
handler_idx
==
WINED3DSIH_ENDLOOP
||
ins
.
handler_idx
==
WINED3DSIH_ENDREP
)
--
cur_loop_depth
;
limit
=
ins
.
src_count
+
(
ins
.
predicate
?
1
:
0
);
limit
=
ins
.
src_count
+
(
ins
.
predicate
?
1
:
0
);
for
(
i
=
0
;
i
<
limit
;
++
i
)
for
(
i
=
0
;
i
<
limit
;
++
i
)
...
...
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