aco: set needs_flat_scr=true for RT
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Fixes: 39c828cb9f
("aco: remove aco::rt_stack variable")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21961>
This commit is contained in:
@@ -309,8 +309,12 @@ calc_waves_per_workgroup(Program* program)
|
||||
uint16_t
|
||||
get_extra_sgprs(Program* program)
|
||||
{
|
||||
/* We don't use this register on GFX6-8 and it's removed on GFX10+. */
|
||||
bool needs_flat_scr = program->config->scratch_bytes_per_wave && program->gfx_level == GFX9;
|
||||
/* We don't use this register on GFX6-8 and it's removed on GFX10+. RT uses scratch but we don't
|
||||
* yet know how much.
|
||||
*/
|
||||
bool needs_flat_scr =
|
||||
(program->config->scratch_bytes_per_wave || program->stage == raytracing_cs) &&
|
||||
program->gfx_level == GFX9;
|
||||
|
||||
if (program->gfx_level >= GFX10) {
|
||||
assert(!program->dev.xnack_enabled);
|
||||
|
Reference in New Issue
Block a user