mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/ir: Do not carry "ins" across loop instances in vsir_program_materialize_undominated_ssas_to_temps().
I think this makes the code slightly more readable.
This commit is contained in:
committed by
Henri Verbeet
parent
6174d1af5d
commit
f49aa3d272
Notes:
Henri Verbeet
2025-09-30 17:26:34 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1760
@@ -7215,7 +7215,7 @@ static enum vkd3d_result vsir_program_materialize_undominated_ssas_to_temps(stru
|
|||||||
|
|
||||||
VKD3D_ASSERT(program->cf_type == VSIR_CF_BLOCKS);
|
VKD3D_ASSERT(program->cf_type == VSIR_CF_BLOCKS);
|
||||||
|
|
||||||
for (ins = vsir_program_iterator_head(&it); ins;)
|
for (ins = vsir_program_iterator_head(&it); ins; ins = vsir_program_iterator_current(&it))
|
||||||
{
|
{
|
||||||
switch (ins->opcode)
|
switch (ins->opcode)
|
||||||
{
|
{
|
||||||
@@ -7225,8 +7225,6 @@ static enum vkd3d_result vsir_program_materialize_undominated_ssas_to_temps(stru
|
|||||||
if ((ret = vsir_program_materialize_undominated_ssas_to_temps_in_function(
|
if ((ret = vsir_program_materialize_undominated_ssas_to_temps_in_function(
|
||||||
program, message_context, &it)) < 0)
|
program, message_context, &it)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
ins = vsir_program_iterator_current(&it);
|
|
||||||
VKD3D_ASSERT(!ins);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VSIR_OP_HS_CONTROL_POINT_PHASE:
|
case VSIR_OP_HS_CONTROL_POINT_PHASE:
|
||||||
@@ -7238,11 +7236,10 @@ static enum vkd3d_result vsir_program_materialize_undominated_ssas_to_temps(stru
|
|||||||
if ((ret = vsir_program_materialize_undominated_ssas_to_temps_in_function(
|
if ((ret = vsir_program_materialize_undominated_ssas_to_temps_in_function(
|
||||||
program, message_context, &it)) < 0)
|
program, message_context, &it)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
ins = vsir_program_iterator_current(&it);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ins = vsir_program_iterator_next(&it);
|
vsir_program_iterator_next(&it);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user