anv: move astc_emu to use descriptors2 calls
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26842>
This commit is contained in:
@@ -1370,8 +1370,14 @@ anv_cmd_buffer_restore_state(struct anv_cmd_buffer *cmd_buffer,
|
||||
}
|
||||
|
||||
if (state->flags & ANV_CMD_SAVED_STATE_PUSH_CONSTANTS) {
|
||||
anv_CmdPushConstants(cmd_buffer_, VK_NULL_HANDLE, stage_flags, 0,
|
||||
sizeof(state->push_constants),
|
||||
state->push_constants);
|
||||
VkPushConstantsInfoKHR push_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_PUSH_CONSTANTS_INFO_KHR,
|
||||
.layout = VK_NULL_HANDLE,
|
||||
.stageFlags = stage_flags,
|
||||
.offset = 0,
|
||||
.size = sizeof(state->push_constants),
|
||||
.pValues = state->push_constants,
|
||||
};
|
||||
anv_CmdPushConstants2KHR(cmd_buffer_, &push_info);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user