aco/gfx12: decrease max_nsa_vgprs for VSAMPLE
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29330>
This commit is contained in:
@@ -6068,7 +6068,11 @@ static MIMG_instruction*
|
||||
emit_mimg(Builder& bld, aco_opcode op, Temp dst, Temp rsrc, Operand samp, std::vector<Temp> coords,
|
||||
Operand vdata = Operand(v1))
|
||||
{
|
||||
bool is_vsample = !samp.isUndefined() || op == aco_opcode::image_msaa_load;
|
||||
|
||||
size_t nsa_size = bld.program->dev.max_nsa_vgprs;
|
||||
if (!is_vsample && bld.program->gfx_level >= GFX12)
|
||||
nsa_size++; /* VIMAGE can encode one more VADDR */
|
||||
nsa_size = bld.program->gfx_level >= GFX11 || coords.size() <= nsa_size ? nsa_size : 0;
|
||||
|
||||
const bool strict_wqm = coords[0].regClass().is_linear_vgpr();
|
||||
|
||||
Reference in New Issue
Block a user