tu: Update more state with secondaries
Some of these are actually bugfixes, some like the drawcall information are just for autotune so they are just performance fixes. However this came from an audit into what state is used in CmdEndRenderPass(). Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17378>
This commit is contained in:
parent
79c7c6e492
commit
9689433eee
|
@ -3375,6 +3375,14 @@ tu_CmdExecuteCommands(VkCommandBuffer commandBuffer,
|
|||
}
|
||||
if (secondary->state.disable_gmem)
|
||||
cmd->state.disable_gmem = true;
|
||||
if (secondary->state.xfb_used)
|
||||
cmd->state.xfb_used = true;
|
||||
if (secondary->state.has_prim_generated_query_in_rp)
|
||||
cmd->state.has_prim_generated_query_in_rp = true;
|
||||
|
||||
cmd->state.drawcall_count += secondary->state.drawcall_count;
|
||||
cmd->state.drawcall_bandwidth_per_sample_sum +=
|
||||
secondary->state.drawcall_bandwidth_per_sample_sum;
|
||||
|
||||
cmd->state.draw_cs_writes_to_cond_pred |=
|
||||
secondary->state.draw_cs_writes_to_cond_pred;
|
||||
|
|
Loading…
Reference in New Issue