From c8365c55f551b357bdee0aace5569e970c6c3758 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 26 Aug 2015 17:56:40 -0700 Subject: [PATCH] vk/cmd_buffer: Set the CONSTANTS_REL_GENERAL flag on execbuf This tells the kernel that the push constant buffers are relative to the dynamic state base address. --- src/vulkan/anv_batch_chain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/anv_batch_chain.c b/src/vulkan/anv_batch_chain.c index af90fb7ae21..77a5bd6f9ec 100644 --- a/src/vulkan/anv_batch_chain.c +++ b/src/vulkan/anv_batch_chain.c @@ -928,7 +928,8 @@ anv_cmd_buffer_prepare_execbuf(struct anv_cmd_buffer *cmd_buffer) .num_cliprects = 0, .DR1 = 0, .DR4 = 0, - .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER, + .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER | + I915_EXEC_CONSTANTS_REL_GENERAL, .rsvd1 = cmd_buffer->device->context_id, .rsvd2 = 0, }; -- 2.30.2