mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
radv: be smarter with the draw packets when executing secondary buffers
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
b253f3189a
commit
47d7d18613
1 changed files with 10 additions and 2 deletions
|
|
@ -2669,8 +2669,16 @@ void radv_CmdExecuteCommands(
|
|||
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;
|
||||
/* Only re-emit the draw packets when needed. */
|
||||
if (secondary->state.last_primitive_reset_en != -1) {
|
||||
primary->state.last_primitive_reset_en =
|
||||
secondary->state.last_primitive_reset_en;
|
||||
}
|
||||
|
||||
if (secondary->state.last_primitive_reset_index) {
|
||||
primary->state.last_primitive_reset_index =
|
||||
secondary->state.last_primitive_reset_index;
|
||||
}
|
||||
}
|
||||
|
||||
/* After executing commands from secondary buffers we have to dirty
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue