mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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:
parent
87f4122e11
commit
b8c5e47949
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue