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
9112a5be
Commit
9112a5be
authored
11 months ago
by
Giovanni Mascellani
Committed by
Alexandre Julliard
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
vkd3d-shader/ir: Move DCL_TEMPS removal to the generic instruction lowering pass.
parent
8a17a5a0
No related branches found
No related tags found
1 merge request
!779
vkd3d-shader/spirv: Implement MAD in two operations if flagged as precise.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/vkd3d-shader/ir.c
+4
-15
4 additions, 15 deletions
libs/vkd3d-shader/ir.c
with
4 additions
and
15 deletions
libs/vkd3d-shader/ir.c
+
4
−
15
View file @
9112a5be
...
...
@@ -56,19 +56,6 @@ static void vkd3d_shader_instruction_make_nop(struct vkd3d_shader_instruction *i
vsir_instruction_init
(
ins
,
&
location
,
VKD3DSIH_NOP
);
}
static
void
remove_dcl_temps
(
struct
vsir_program
*
program
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
program
->
instructions
.
count
;
++
i
)
{
struct
vkd3d_shader_instruction
*
ins
=
&
program
->
instructions
.
elements
[
i
];
if
(
ins
->
handler_idx
==
VKD3DSIH_DCL_TEMPS
)
vkd3d_shader_instruction_make_nop
(
ins
);
}
}
static
bool
vsir_instruction_init_with_params
(
struct
vsir_program
*
program
,
struct
vkd3d_shader_instruction
*
ins
,
const
struct
vkd3d_shader_location
*
location
,
enum
vkd3d_shader_opcode
handler_idx
,
unsigned
int
dst_count
,
unsigned
int
src_count
)
...
...
@@ -189,6 +176,10 @@ static enum vkd3d_result vsir_program_lower_instructions(struct vsir_program *pr
return
ret
;
break
;
case
VKD3DSIH_DCL_TEMPS
:
vkd3d_shader_instruction_make_nop
(
ins
);
break
;
default:
break
;
}
...
...
@@ -5767,8 +5758,6 @@ enum vkd3d_result vsir_program_normalise(struct vsir_program *program, uint64_t
{
enum
vkd3d_result
result
=
VKD3D_OK
;
remove_dcl_temps
(
program
);
if
((
result
=
vsir_program_lower_instructions
(
program
))
<
0
)
return
result
;
...
...
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