aco: fix bogus assert in RT prolog on GFX11+

in_scratch_offset isn't defined on GFX11+ and only useful on < GFX9.

Fixes: bd525f4282 ("aco: Fix 1D->2D dispatch conversion on <gfx9")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30717>
This commit is contained in:
Samuel Pitoiset 2024-08-19 08:42:06 +02:00 committed by Marge Bot
parent 48e46c71c0
commit aad503ecfa

View file

@ -12601,7 +12601,7 @@ select_rt_prolog(Program* program, ac_shader_config* config,
/* <gfx9 reads in_scratch_offset at the end of the prolog to write out the scratch_offset
* arg. Make sure no other outputs have overwritten it by then.
*/
assert(in_scratch_offset.reg() >= out_args->num_sgprs_used);
assert(options->gfx_level >= GFX9 || in_scratch_offset.reg() >= out_args->num_sgprs_used);
/* load raygen sbt */
bld.smem(aco_opcode::s_load_dwordx2, Definition(tmp_raygen_sbt, s2), Operand(in_sbt_desc, s2),