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.
This commit is contained in:
Jason Ekstrand 2015-08-26 17:56:40 -07:00
parent efc2cce01f
commit c8365c55f5

View 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,
};