mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/ir: Skip invalid blocks when materializing undominated SSAs.
This commit is contained in:
parent
eae1411cdc
commit
d8e4b19cdc
Notes:
Alexandre Julliard
2024-04-23 22:57:52 +02:00
Approved-by: Conor McCarthy (@cmccarthy) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/807
@ -5001,6 +5001,9 @@ static enum vkd3d_result vsir_cfg_materialize_undominated_ssas_to_temps(struct v
|
||||
struct vsir_block *block = &cfg->blocks[i];
|
||||
struct vkd3d_shader_instruction *ins;
|
||||
|
||||
if (block->label == 0)
|
||||
continue;
|
||||
|
||||
for (ins = block->begin; ins <= block->end; ++ins)
|
||||
{
|
||||
for (j = 0; j < ins->dst_count; ++j)
|
||||
@ -5016,6 +5019,9 @@ static enum vkd3d_result vsir_cfg_materialize_undominated_ssas_to_temps(struct v
|
||||
struct vsir_block *block = &cfg->blocks[i];
|
||||
struct vkd3d_shader_instruction *ins;
|
||||
|
||||
if (block->label == 0)
|
||||
continue;
|
||||
|
||||
for (ins = block->begin; ins <= block->end; ++ins)
|
||||
{
|
||||
for (j = 0; j < ins->src_count; ++j)
|
||||
|
Loading…
x
Reference in New Issue
Block a user