summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-11 21:57:43 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-11 21:57:43 -0700
commitfbc9fe3c92580208896d2799f117f23d477896f7 (patch)
tree01ae1c1e35f9f70745fe850ef3ba7e5f8932f796 /src
parent765175f5d195df727ed9d171720f4e843809744e (diff)
vk: Use compute pipeline layout when binding compute sets
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index b27bd6d765b..0126b248233 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -2761,12 +2761,17 @@ void anv_CmdBindDescriptorSets(
const uint32_t* pDynamicOffsets)
{
struct anv_cmd_buffer *cmd_buffer = (struct anv_cmd_buffer *) cmdBuffer;
- struct anv_pipeline_layout *layout = cmd_buffer->pipeline->layout;
+ struct anv_pipeline_layout *layout;
struct anv_descriptor_set *set;
struct anv_descriptor_set_layout *set_layout;
assert(firstSet + setCount < MAX_SETS);
+ if (pipelineBindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS)
+ layout = cmd_buffer->pipeline->layout;
+ else
+ layout = cmd_buffer->compute_pipeline->layout;
+
uint32_t dynamic_slot = 0;
for (uint32_t i = 0; i < setCount; i++) {
set = (struct anv_descriptor_set *) pDescriptorSets[i];