mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
aco: use correct dim for FMASK fetches
I think it somehow worked fine previously, but this is more correct. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12214>
This commit is contained in:
parent
91a5c9fdf2
commit
cfb816b2a5
1 changed files with 4 additions and 1 deletions
|
|
@ -9741,7 +9741,10 @@ visit_tex(isel_context* ctx, nir_tex_instr* instr)
|
|||
Operand vdata = instr->is_sparse ? emit_tfe_init(bld, tmp_dst) : Operand(v1);
|
||||
MIMG_instruction* tex =
|
||||
emit_mimg(bld, op, Definition(tmp_dst), resource, Operand(s4), args, 0, vdata);
|
||||
tex->dim = dim;
|
||||
if (instr->op == nir_texop_fragment_mask_fetch_amd)
|
||||
tex->dim = da ? ac_image_2darray : ac_image_2d;
|
||||
else
|
||||
tex->dim = dim;
|
||||
tex->dmask = dmask & 0xf;
|
||||
tex->unrm = true;
|
||||
tex->da = da;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue