diff options
author | Jason Ekstrand <[email protected]> | 2015-12-10 16:58:24 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-12-10 18:29:36 -0800 |
commit | d5c9955d3eaa7311e2b2350b6964bae516c7b7b2 (patch) | |
tree | 401e4378dd9909f9010f076d026a77e515170be5 /src/vulkan/anv_cmd_buffer.c | |
parent | 8beea9d45b5879ea3dbd9c0e48f0c0eb2451f380 (diff) | |
parent | 78b81be627734ea7fa50ea246c07b0d4a3a1638a (diff) |
Merge remote-tracking branch 'mesa-public/master' into vulkan
This pulls in nir_intrinsic_load/store changes and the switch of all
uniforms in i965 to bytes. This accounts for the Vulkan changes.
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
-rw-r--r-- | src/vulkan/anv_cmd_buffer.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index d34d53dcbb3..5a56bb53c5e 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -589,22 +589,14 @@ fill_descriptor_buffer_surface_state(struct anv_device *device, void *state, uint32_t offset, uint32_t range) { VkFormat format; - uint32_t stride; - switch (type) { case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER: case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC: - if (device->instance->physicalDevice.compiler->scalar_stage[stage]) { - stride = 4; - } else { - stride = 16; - } format = VK_FORMAT_R32G32B32A32_SFLOAT; break; case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER: case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: - stride = 1; format = VK_FORMAT_UNDEFINED; break; @@ -614,7 +606,7 @@ fill_descriptor_buffer_surface_state(struct anv_device *device, void *state, anv_fill_buffer_surface_state(device, state, anv_format_for_vk_format(format), - offset, range, stride); + offset, range, 1); } VkResult @@ -938,7 +930,7 @@ anv_cmd_buffer_cs_push_constants(struct anv_cmd_buffer *cmd_buffer) const unsigned local_id_dwords = cs_prog_data->local_invocation_id_regs * 8; const unsigned push_constant_data_size = - (local_id_dwords + prog_data->nr_params) * sizeof(gl_constant_value); + (local_id_dwords + prog_data->nr_params) * sizeof(union gl_constant_value *); const unsigned reg_aligned_constant_size = ALIGN(push_constant_data_size, 32); const unsigned param_aligned_count = reg_aligned_constant_size / sizeof(uint32_t); |