mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
panvk: Pass the push constant array to draw/dispatch calls
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28397>
This commit is contained in:
parent
04d7b9c396
commit
46e764c5e1
1 changed files with 3 additions and 0 deletions
|
|
@ -1337,6 +1337,7 @@ panvk_cmd_draw(struct panvk_cmd_buffer *cmdbuf, struct panvk_draw_info *draw)
|
|||
draw->tls = batch->tls.gpu;
|
||||
draw->fb = batch->fb.desc.gpu;
|
||||
draw->ubos = desc_state->ubos;
|
||||
draw->push_uniforms = desc_state->push_constants;
|
||||
draw->textures = desc_state->textures;
|
||||
draw->samplers = desc_state->samplers;
|
||||
|
||||
|
|
@ -1765,6 +1766,8 @@ panvk_per_arch(CmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x,
|
|||
panvk_cmd_prepare_ubos(cmdbuf, bind_point_state);
|
||||
dispatch.ubos = desc_state->ubos;
|
||||
|
||||
dispatch.push_uniforms = desc_state->push_constants;
|
||||
|
||||
panvk_cmd_prepare_textures(cmdbuf, bind_point_state);
|
||||
dispatch.textures = desc_state->textures;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue