mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 13:40:16 +01:00
anv: limit push constant reemission
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19050>
This commit is contained in:
parent
2db45f713a
commit
d7f1569307
1 changed files with 2 additions and 2 deletions
|
|
@ -2301,7 +2301,7 @@ cmd_buffer_alloc_push_constants(struct anv_cmd_buffer *cmd_buffer)
|
||||||
* Since 3DSTATE_PUSH_CONSTANT_ALLOC_VS is programmed as part of
|
* Since 3DSTATE_PUSH_CONSTANT_ALLOC_VS is programmed as part of
|
||||||
* pipeline setup, we need to dirty push constants.
|
* pipeline setup, we need to dirty push constants.
|
||||||
*/
|
*/
|
||||||
cmd_buffer->state.push_constants_dirty |= VK_SHADER_STAGE_ALL_GRAPHICS;
|
cmd_buffer->state.push_constants_dirty |= stages;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult
|
||||||
|
|
@ -3616,7 +3616,7 @@ genX(cmd_buffer_flush_gfx_state)(struct anv_cmd_buffer *cmd_buffer)
|
||||||
/* Because we're pushing UBOs, we have to push whenever either
|
/* Because we're pushing UBOs, we have to push whenever either
|
||||||
* descriptors or push constants is dirty.
|
* descriptors or push constants is dirty.
|
||||||
*/
|
*/
|
||||||
dirty |= cmd_buffer->state.push_constants_dirty;
|
dirty |= cmd_buffer->state.push_constants_dirty & pipeline->active_stages;
|
||||||
cmd_buffer_flush_push_constants(cmd_buffer,
|
cmd_buffer_flush_push_constants(cmd_buffer,
|
||||||
dirty & VK_SHADER_STAGE_ALL_GRAPHICS);
|
dirty & VK_SHADER_STAGE_ALL_GRAPHICS);
|
||||||
#if GFX_VERx10 >= 125
|
#if GFX_VERx10 >= 125
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue