summaryrefslogtreecommitdiff
path: root/src/intel/vulkan/genX_cmd_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index e88069e4cbd..0b4bbe328d2 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -3023,6 +3023,13 @@ get_push_range_address(struct anv_cmd_buffer *cmd_buffer,
};
}
+ case ANV_DESCRIPTOR_SET_SHADER_CONSTANTS:
+ return (struct anv_address) {
+ .bo = cmd_buffer->device->instruction_state_pool.block_pool.bo,
+ .offset = shader->kernel.offset +
+ shader->prog_data->const_data_offset,
+ };
+
default: {
assert(range->set < MAX_SETS);
struct anv_descriptor_set *set =
@@ -3085,6 +3092,9 @@ get_push_range_bound_size(struct anv_cmd_buffer *cmd_buffer,
case ANV_DESCRIPTOR_SET_PUSH_CONSTANTS:
return (range->start + range->length) * 32;
+ case ANV_DESCRIPTOR_SET_SHADER_CONSTANTS:
+ return ALIGN(shader->prog_data->const_data_size, ANV_UBO_ALIGNMENT);
+
default: {
assert(range->set < MAX_SETS);
struct anv_descriptor_set *set =