pvr: propagate get_vis_results flag from secondary cmdbuf gfx jobs

When recording secondary command buffers with occlusion queries, the
get_vis_results flag could be set for some graphics sub_cmd's job.

Propagate this flag from secondary command buffer graphics sub_cmds to
primary command buffer sub_cmds to ensure occlusion queries in secondary
command buffers being correctly executed.

Fixes: 5c34be4340 ("pvr: Process secondary buffer queries in vkCmdExecuteCommands.")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40854>
This commit is contained in:
Icenowy Zheng 2026-04-10 00:18:28 +08:00 committed by Marge Bot
parent 87f4122e11
commit b8c5e47949

View file

@ -9068,6 +9068,9 @@ pvr_execute_graphics_cmd_buffer(struct pvr_cmd_buffer *cmd_buffer,
sec_sub_cmd->gfx.job.disable_compute_overlap;
}
primary_sub_cmd->gfx.job.get_vis_results |=
sec_sub_cmd->gfx.job.get_vis_results;
primary_sub_cmd->gfx.max_tiles_in_flight =
MIN2(primary_sub_cmd->gfx.max_tiles_in_flight,
sec_sub_cmd->gfx.max_tiles_in_flight);