mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
48e46c71c0
commit
aad503ecfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue