mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 02:30:32 +01:00
vk/cmd_queue: move pipeline layout refs into builder
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40268>
This commit is contained in:
parent
dbbd5360f0
commit
c35499e99d
1 changed files with 2 additions and 4 deletions
|
|
@ -404,10 +404,6 @@ vk_cmd_enqueue_${c.name}(${c.decl_params()})
|
|||
% endif
|
||||
if (unlikely(!cmd))
|
||||
vk_command_buffer_set_error(cmd_buffer, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
% if 'CmdBindDescriptorSets' == c.name or 'CmdPushDescriptorSet' == c.name:
|
||||
else
|
||||
enqueue_pipeline_layout(&cmd_buffer->cmd_queue, layout);
|
||||
% endif
|
||||
}
|
||||
% endif
|
||||
|
||||
|
|
@ -548,6 +544,8 @@ def get_param_copy(builder, command, types, src_parent_access, dst_parent_access
|
|||
match categorize_param(types, None, param):
|
||||
case ParamCategory.ASSIGNABLE:
|
||||
builder.add("%s = %s;" % (dst, src))
|
||||
if param.type == 'VkPipelineLayout':
|
||||
builder.add("enqueue_pipeline_layout(queue, %s);" % (src))
|
||||
case ParamCategory.FLAT_ARRAY:
|
||||
builder.add("memcpy(%s, %s, sizeof(*%s) * %s);" % (dst, src, src, get_array_len(param)))
|
||||
case ParamCategory.UNSIZED_RAW_POINTER:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue