aco: use a smaller wqm section for strict_wqm sampling

It's only important that the coordinate is created in WQM,
the sample itself doesn't care.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35970>
This commit is contained in:
Georg Lehmann 2025-07-07 15:46:11 +02:00 committed by Marge Bot
parent de4b345949
commit c1b29174b4
2 changed files with 2 additions and 1 deletions

View file

@ -683,7 +683,7 @@ visit_tex(isel_context* ctx, nir_tex_instr* instr)
tex->tfe = instr->is_sparse;
tex->d16 = d16;
tex->a16 = a16;
if (implicit_derivs)
if (implicit_derivs && !has_wqm_coord)
set_wqm(ctx, true);
if (tg4_integer_cube_workaround) {

View file

@ -5134,6 +5134,7 @@ visit_intrinsic(isel_context* ctx, nir_intrinsic_instr* instr)
vec->definitions[0] = Definition(dst);
ctx->block->instructions.emplace_back(std::move(vec));
set_wqm(ctx, true);
break;
}
case nir_intrinsic_store_scalar_arg_amd: {