mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
radv: be smarter with pipelines when emitting secondary buffers
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
67dd52e7e8
commit
4e65b4ea4b
1 changed files with 17 additions and 2 deletions
|
|
@ -2650,8 +2650,23 @@ void radv_CmdExecuteCommands(
|
|||
}
|
||||
primary->device->ws->cs_execute_secondary(primary->cs, secondary->cs);
|
||||
|
||||
primary->state.emitted_pipeline = secondary->state.emitted_pipeline;
|
||||
primary->state.emitted_compute_pipeline = secondary->state.emitted_compute_pipeline;
|
||||
|
||||
/* When the secondary command buffer is compute only we don't
|
||||
* need to re-emit the current graphics pipeline.
|
||||
*/
|
||||
if (secondary->state.emitted_pipeline) {
|
||||
primary->state.emitted_pipeline =
|
||||
secondary->state.emitted_pipeline;
|
||||
}
|
||||
|
||||
/* When the secondary command buffer is graphics only we don't
|
||||
* need to re-emit the current compute pipeline.
|
||||
*/
|
||||
if (secondary->state.emitted_compute_pipeline) {
|
||||
primary->state.emitted_compute_pipeline =
|
||||
secondary->state.emitted_compute_pipeline;
|
||||
}
|
||||
|
||||
primary->state.last_primitive_reset_en = secondary->state.last_primitive_reset_en;
|
||||
primary->state.last_primitive_reset_index = secondary->state.last_primitive_reset_index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue