anv: reuse helper for compute push constants
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32895>
This commit is contained in:
committed by
Marge Bot
parent
c08b437db7
commit
75e09c4ff3
@@ -1250,9 +1250,9 @@ anv_cmd_buffer_cs_push_constants(struct anv_cmd_buffer *cmd_buffer)
|
||||
ALIGN(total_push_constants_size, push_constant_alignment);
|
||||
struct anv_state state;
|
||||
if (devinfo->verx10 >= 125) {
|
||||
state = anv_state_stream_alloc(&cmd_buffer->general_state_stream,
|
||||
aligned_total_push_constants_size,
|
||||
push_constant_alignment);
|
||||
state = anv_cmd_buffer_alloc_general_state(cmd_buffer,
|
||||
aligned_total_push_constants_size,
|
||||
push_constant_alignment);
|
||||
} else {
|
||||
state = anv_cmd_buffer_alloc_dynamic_state(cmd_buffer,
|
||||
aligned_total_push_constants_size,
|
||||
|
||||
Reference in New Issue
Block a user