mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 03:08:19 +02:00
ac/nir: Fix nir_texop_lod on GFX for 1D arrays.
Fixes:1bcb953e16'radv: handle GFX9 1D textures' Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit2c5b43c87f)
This commit is contained in:
parent
2d51d41865
commit
f46ba9ee35
1 changed files with 3 additions and 1 deletions
|
|
@ -4553,7 +4553,9 @@ static void visit_tex(struct nir_to_llvm_context *ctx, nir_tex_instr *instr)
|
|||
filler = LLVMConstReal(ctx->f32, 0.5);
|
||||
|
||||
if (instr->sampler_dim == GLSL_SAMPLER_DIM_1D) {
|
||||
if (instr->is_array) {
|
||||
/* No nir_texop_lod, because it does not take a slice
|
||||
* even with array textures. */
|
||||
if (instr->is_array && instr->op != nir_texop_lod ) {
|
||||
address[count] = address[count - 1];
|
||||
address[count - 1] = filler;
|
||||
count++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue