mesa/src/panfrost
Olivia Lee d0dd9ab2a8 panvk/csf: fix provoking vertex mode in partial secondary cmdbufs
For partial secondary cmdbufs, we emit FBDs/TDs in the primary cmdbuf
before calling the secondary. In order to set the provoking vertex mode
correctly here, we need to look at the mode set by pipelines bound in
the secondary cmdbuf.

This leaves one edge case: reemitting FBDs/TDs in a secondary cmdbuf
after a flush. If the secondary cmdbuf only contains vk_meta draws,
without ever binding a pipeline, we won't know which provoking vertex
mode to use here. This is actually okay, because in that case the
provoking vertex mode doesn't matter for any of the draws in the
secondary, and the FBDs/TDs will be reemitted on the primary with the
correct mode.

Fixes: 7a9f14d3c2 ("panvk: advertise VK_EXT_provoking_vertex")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Tested-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Ryan Mckeever <ryan.mckeever@collabora.com>
(cherry picked from commit 65406cf500)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35194>
2025-06-04 15:52:46 +02:00
..
ci pan/bi: Lower ffract in bifrost_nir_algebraic on v11+ 2025-05-20 20:18:07 +02:00
clc pan/clc: Build for v13 2025-04-15 13:36:07 +02:00
compiler pan/bi: Lower ffract in bifrost_nir_algebraic on v11+ 2025-05-20 20:18:07 +02:00
drm-shim panfrost: Fix group priorities in drm-shim 2025-02-05 13:30:29 +00:00
ds panfrost/pps: fix omitting several counters 2025-04-05 08:06:00 +00:00
lib pan/csf: rename cs_exception_handler to cs_function 2025-06-04 15:52:46 +02:00
libpan pan/clc: Build for v13 2025-04-15 13:36:07 +02:00
midgard panfrost: allow promoting sysval UBO to push constants 2025-04-27 11:50:23 +02:00
perf pan/kmod: Add drmIoctl() wrapper pan_kmod_ioctl() with CPU trace 2025-04-15 10:37:39 +00:00
shared panfrost,lima: use index size in panfrost minmax_cache 2025-04-07 16:53:22 +00:00
tools build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
util panfrost: allow promoting sysval UBO to push constants 2025-04-27 11:50:23 +02:00
vulkan panvk/csf: fix provoking vertex mode in partial secondary cmdbufs 2025-06-04 15:52:46 +02:00
.clang-format pan/cs: cs_{break,continue} are not for_each macros 2025-01-15 14:07:37 +00:00
meson.build panfrost: build panfrost_compile for -Dtools=panfrost 2025-05-01 09:38:52 +02:00