mesa/src/imagination
Icenowy Zheng 14a4a478c4 pvr: skip emitting query program when copy result / reset with 0 queries
When calling vkResetQueryPool() or vkCmdCopyQueryPoolResults() with a
queryCount of 0, currently a query compute program with workgroup size
0*1*1 will be emited, which is ridiculous and will be rejected by some
assertion in pvr_compute_generate_control_stream() .

As the operation should be noop when queryCount is 0, the functions can
and should just return in such cases.

Fixes: 0aa9f32b95 ("pvr: Implement vkCmdResetQueryPool API.")
Fixes: b6e8e1cf37 ("pvr: Implement vkCmdCopyQueryPoolResults API.")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Nick Hamilton <nick.hamilton@imgtec.com>
(cherry picked from commit 01ba4867fa)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
2026-04-29 17:54:44 +02:00
..
ci pvr: finalize query_indices array after ending last sub_cmd 2026-04-29 17:54:41 +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: skip emitting query program when copy result / reset with 0 queries 2026-04-29 17:54:44 +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