agx: allow bindful arrays if not clamping

for blit shaders mostly.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26963>
This commit is contained in:
Alyssa Rosenzweig
2023-12-07 09:02:52 -04:00
parent 611fcfc5ca
commit c455a27f54

View File

@@ -647,7 +647,7 @@ agx_nir_needs_texture_crawl(nir_instr *instr)
nir_tex_instr *tex = nir_instr_as_tex(instr);
/* Array textures get clamped to their size via txs */
if (tex->is_array)
if (tex->is_array && !(tex->backend_flags & AGX_TEXTURE_FLAG_NO_CLAMP))
return true;
switch (tex->op) {