Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
vkd3d
Commits
9487cc6a
Commit
9487cc6a
authored
1 year ago
by
Giovanni Mascellani
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
vkd3d-shader/ir: Simplify the control flow in shader_instruction_normalise_io_params().
parent
5220125c
No related branches found
No related tags found
1 merge request
!317
vkd3d-shader: Begin validating the generated IR.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/vkd3d-shader/ir.c
+4
-7
4 additions, 7 deletions
libs/vkd3d-shader/ir.c
with
4 additions
and
7 deletions
libs/vkd3d-shader/ir.c
+
4
−
7
View file @
9487cc6a
...
...
@@ -1010,7 +1010,6 @@ static void shader_instruction_normalise_io_params(struct vkd3d_shader_instructi
struct
io_normaliser
*
normaliser
)
{
struct
vkd3d_shader_register
*
reg
;
bool
keep
=
true
;
unsigned
int
i
;
switch
(
ins
->
handler_idx
)
...
...
@@ -1029,15 +1028,16 @@ static void shader_instruction_normalise_io_params(struct vkd3d_shader_instructi
/* fall through */
case
VKD3DSIH_DCL_INPUT_PS
:
case
VKD3DSIH_DCL_OUTPUT
:
keep
=
shader_dst_param_io_normalise
(
&
ins
->
declaration
.
dst
,
true
,
normaliser
);
if
(
!
shader_dst_param_io_normalise
(
&
ins
->
declaration
.
dst
,
true
,
normaliser
))
vkd3d_shader_instruction_make_nop
(
ins
);
break
;
case
VKD3DSIH_DCL_INPUT_SGV
:
case
VKD3DSIH_DCL_INPUT_SIV
:
case
VKD3DSIH_DCL_INPUT_PS_SGV
:
case
VKD3DSIH_DCL_INPUT_PS_SIV
:
case
VKD3DSIH_DCL_OUTPUT_SIV
:
keep
=
shader_dst_param_io_normalise
(
&
ins
->
declaration
.
register_semantic
.
reg
,
true
,
normaliser
);
if
(
!
shader_dst_param_io_normalise
(
&
ins
->
declaration
.
register_semantic
.
reg
,
true
,
normaliser
))
vkd3d_shader_instruction_make_nop
(
ins
);
break
;
case
VKD3DSIH_HS_CONTROL_POINT_PHASE
:
case
VKD3DSIH_HS_FORK_PHASE
:
...
...
@@ -1056,9 +1056,6 @@ static void shader_instruction_normalise_io_params(struct vkd3d_shader_instructi
shader_src_param_io_normalise
((
struct
vkd3d_shader_src_param
*
)
&
ins
->
src
[
i
],
normaliser
);
break
;
}
if
(
!
keep
)
vsir_instruction_init
(
ins
,
VKD3DSIH_NOP
);
}
static
enum
vkd3d_result
instruction_array_normalise_io_registers
(
struct
vkd3d_shader_instruction_array
*
instructions
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment