diff --git a/.pick_status.json b/.pick_status.json index d731fd8c85e..d4144081d44 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2194,7 +2194,7 @@ "description": "pan/bi: fix 1D array tex coord lowering", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 07ca3fba859..b4bad2f2c7f 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -3478,7 +3478,7 @@ bi_emit_tex_valhall(bi_builder *b, nir_tex_instr *instr) /* Copy XY (for 2D+) or XX (for 1D) */ sregs[VALHALL_TEX_SREG_X_COORD] = index; - if (components >= 2) + if ((components == 2 && !instr->is_array) || components > 2) sregs[VALHALL_TEX_SREG_Y_COORD] = bi_extract(b, index, 1); if (components == 3 && !instr->is_array) {