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
30031f6d
Commit
30031f6d
authored
Jul 02, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Replace an open-coded implementation of LIST_FOR_EACH_ENTRY_SAFE.
parent
93c88d34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
shader.c
dlls/wined3d/shader.c
+7
-14
No files found.
dlls/wined3d/shader.c
View file @
30031f6d
...
...
@@ -409,16 +409,10 @@ static unsigned int shader_get_float_offset(enum wined3d_shader_register_type re
static
void
shader_delete_constant_list
(
struct
list
*
clist
)
{
struct
wined3d_shader_lconst
*
constant
;
struct
list
*
ptr
;
struct
wined3d_shader_lconst
*
constant
,
*
constant_next
;
ptr
=
list_head
(
clist
);
while
(
ptr
)
{
constant
=
LIST_ENTRY
(
ptr
,
struct
wined3d_shader_lconst
,
entry
);
ptr
=
list_next
(
clist
,
ptr
);
LIST_FOR_EACH_ENTRY_SAFE
(
constant
,
constant_next
,
clist
,
struct
wined3d_shader_lconst
,
entry
)
HeapFree
(
GetProcessHeap
(),
0
,
constant
);
}
list_init
(
clist
);
}
...
...
@@ -2046,6 +2040,11 @@ static HRESULT shader_set_function(struct wined3d_shader *shader, const DWORD *b
TRACE
(
"shader %p, byte_code %p, output_signature %p, float_const_count %u.
\n
"
,
shader
,
byte_code
,
output_signature
,
float_const_count
);
list_init
(
&
shader
->
constantsF
);
list_init
(
&
shader
->
constantsB
);
list_init
(
&
shader
->
constantsI
);
shader
->
lconst_inf_or_nan
=
FALSE
;
fe
=
shader_select_frontend
(
*
byte_code
);
if
(
!
fe
)
{
...
...
@@ -2064,12 +2063,6 @@ static HRESULT shader_set_function(struct wined3d_shader *shader, const DWORD *b
if
(
TRACE_ON
(
d3d_shader
))
shader_trace_init
(
fe
,
shader
->
frontend_data
,
byte_code
);
/* Initialize immediate constant lists. */
list_init
(
&
shader
->
constantsF
);
list_init
(
&
shader
->
constantsB
);
list_init
(
&
shader
->
constantsI
);
shader
->
lconst_inf_or_nan
=
FALSE
;
/* Second pass: figure out which registers are used, what the semantics are, etc. */
if
(
FAILED
(
hr
=
shader_get_registers_used
(
shader
,
fe
,
reg_maps
,
&
shader
->
input_signature
,
&
shader
->
output_signature
,
byte_code
,
float_const_count
)))
...
...
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