aco/tests: Insert p_logical_start/end in reduce_temp tests

Linear VGPR insertion will depend on a p_logical_end existing in the
blocks the VGPR is inserted in.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28041>
(cherry picked from commit 84c1870b65)
This commit is contained in:
Friedrich Vock 2024-05-14 06:51:02 +02:00 committed by Eric Engestrom
parent 368892e9e2
commit d3b8a28357
2 changed files with 6 additions and 1 deletions

View file

@ -2494,7 +2494,7 @@
"description": "aco/tests: Insert p_logical_start/end in reduce_temp tests",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -41,6 +41,11 @@ BEGIN_TEST(setup_reduce_temp.divergent_if_phi)
if (!setup_cs("s2 v1", GFX9))
return;
//>> p_logical_start
//>> p_logical_end
bld.pseudo(aco_opcode::p_logical_start);
bld.pseudo(aco_opcode::p_logical_end);
//>> lv1: %lv = p_start_linear_vgpr
emit_divergent_if_else(
program.get(), bld, Operand(inputs[0]),