mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
radv: Always reset draw user SGPRs after secondary command buffer.
As we sometimes reset them to -1, -1 does not mean that they are not written by the secondary command buffer. Fixes:ad11fc3571"radv: don't emit unneeded vertex state." Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> (cherry picked from commit41fbcc7901)
This commit is contained in:
parent
d2991fc2c6
commit
362c4f4c72
1 changed files with 3 additions and 14 deletions
|
|
@ -3006,20 +3006,9 @@ void radv_CmdExecuteCommands(
|
|||
secondary->state.last_ia_multi_vgt_param;
|
||||
}
|
||||
|
||||
if (secondary->state.last_first_instance != -1) {
|
||||
primary->state.last_first_instance =
|
||||
secondary->state.last_first_instance;
|
||||
}
|
||||
|
||||
if (secondary->state.last_num_instances != -1) {
|
||||
primary->state.last_num_instances =
|
||||
secondary->state.last_num_instances;
|
||||
}
|
||||
|
||||
if (secondary->state.last_vertex_offset != -1) {
|
||||
primary->state.last_vertex_offset =
|
||||
secondary->state.last_vertex_offset;
|
||||
}
|
||||
primary->state.last_first_instance = secondary->state.last_first_instance;
|
||||
primary->state.last_num_instances = secondary->state.last_num_instances;
|
||||
primary->state.last_vertex_offset = secondary->state.last_vertex_offset;
|
||||
|
||||
if (secondary->state.last_index_type != -1) {
|
||||
primary->state.last_index_type =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue