panvk: Remove lower_tg4_broadcom_swizzle from panvk_preprocess_nir()

We are already applying the .bagr swizzle in bifrost_preprocess_nir(), so
remove lower_tg4_broadcom_swizzle from nir_lower_tex_options in
panvk_preprocess_nir to avoid applying the swizzle twice.

Fixes: 4050697a8f ("panvk: So more nir_lower_tex before descriptor lowering")

Signed-off-by: Rebecca Mckeever <rebecca.mckeever@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34033>
(cherry picked from commit f450807b68)
This commit is contained in:
Rebecca Mckeever 2025-03-20 14:36:35 -07:00 committed by Eric Engestrom
parent 98530340ca
commit 42b6bd48b7
2 changed files with 1 additions and 2 deletions

View file

@ -374,7 +374,7 @@
"description": "panvk: Remove lower_tg4_broadcom_swizzle from panvk_preprocess_nir()",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "4050697a8f4620109388c02cd8e7437f21e12dc4",
"notes": null

View file

@ -346,7 +346,6 @@ panvk_preprocess_nir(UNUSED struct vk_physical_device *vk_pdev, nir_shader *nir)
nir_lower_tex_options lower_tex_options = {
.lower_txs_lod = true,
.lower_txp = ~0,
.lower_tg4_broadcom_swizzle = true,
.lower_txd_cube_map = true,
.lower_invalid_implicit_lod = true,
};