From: Jason Ekstrand Date: Thu, 27 Aug 2015 00:56:40 +0000 (-0700) Subject: vk/cmd_buffer: Set the CONSTANTS_REL_GENERAL flag on execbuf X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8365c55f551b357bdee0aace5569e970c6c3758;p=mesa.git 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. --- 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, };