panfrost: fix typos in architecture detection

The preprocessor symbol we want is `PAN_ARCH`, not `MALI_ARCH`.

Fixes: a21ee564e2 ("pan/bi: Make texel buffers use Attribute Buffers")
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
(cherry picked from commit 3945421c17)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40752>
This commit is contained in:
Eric R. Smith 2026-03-16 18:53:15 -03:00 committed by Eric Engestrom
parent 675c1885b6
commit 0629cbe042
2 changed files with 3 additions and 3 deletions

View file

@ -6194,7 +6194,7 @@
"description": "panfrost: fix typos in architecture detection",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "a21ee564e2051e5e6827ce333da1f85b8b828e1d",
"notes": null

View file

@ -2089,7 +2089,7 @@ emit_image_bufs(struct panfrost_batch *batch, mesa_shader_stage shader,
panfrost_track_image_access(batch, shader, image);
#if MALI_ARCH >= 6
#if PAN_ARCH >= 6
if (is_buffer) {
pan_pack(bufs + (i * 2), ATTRIBUTE_BUFFER, cfg) {
cfg.type = MALI_ATTRIBUTE_TYPE_1D;
@ -2110,7 +2110,7 @@ emit_image_bufs(struct panfrost_batch *batch, mesa_shader_stage shader,
is_buffer ? 0 : image->u.tex.level);
}
#if MALI_ARCH <= 5
#if PAN_ARCH <= 5
if (is_buffer) {
pan_cast_and_pack(&bufs[(i * 2) + 1], ATTRIBUTE_BUFFER_CONTINUATION_3D,
cfg) {