mesa/src/imagination
Icenowy Zheng 5ec344df2c pvr: setup viewindex if the shader wants it even when multiview disabled
It's possible to use a shader that has ViewIndex input when multiview
isn't enabled. According to the Vulkan specification, when multiview
isn't enabled in a renderpass, the value of the ViewIndex input should
be 0.

However currently the driver does not emit execution of the PDS code
setting up view index, which leads to stale value to remain in
ViewIndex.

Setup the PDS code for setting view index and emit the command stream
for executing that PDS code when the shader wants ViewIndex, even if
multiview isn't enabled.

Fixes: 9d48088428 ("pvr: add view index support for vertex shaders")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Nick Hamilton <nick.hamilton@imgtec.com>
(cherry picked from commit 3afc792dc8)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
2026-05-13 15:39:18 +02:00
..
ci pvr: properly handle deferred RTA clears for 2D array view of 3D image 2026-05-13 15:39:16 +02:00
common pvr: set has_usc_alu_roundingmode_rne for all B-series Rogue cores 2026-04-14 15:27:46 +02:00
csbgen pvr/csbgen: fix packing multiple addresses 2026-01-28 16:18:00 +01:00
include pvr: Fix the isp samples per tile calculation 2026-02-04 18:39:33 +01:00
pco pco: fix clamping the array index when shaderImageGatherExtended is enabled 2026-04-29 17:54:43 +02:00
vulkan pvr: setup viewindex if the shader wants it even when multiview disabled 2026-05-13 15:39:18 +02:00
.clang-format pvr: remove unused macros 2025-11-11 10:13:11 +01:00
.dir-locals.el
.editorconfig pvr: Change indentation from tab to spaces for xml files. 2022-08-31 08:26:17 +00:00
meson.build pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00