vk/cmd_buffer: Set the CONSTANTS_REL_GENERAL flag on execbuf
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 00:56:40 +0000 (17:56 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 17:25:58 +0000 (10:25 -0700)
This tells the kernel that the push constant buffers are relative to the
dynamic state base address.

src/vulkan/anv_batch_chain.c

index af90fb7ae214fb18938a921f5c2af39fc092bfa4..77a5bd6f9ece2a71469ec21bf84a24f0467ea9eb 100644 (file)
@@ -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,
    };