anv: Drop I915_EXEC_CONSTANTS_REL_GENERAL from execbuf.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 11 Feb 2018 22:52:27 +0000 (14:52 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 12 Feb 2018 15:00:41 +0000 (07:00 -0800)
The kernel used to have execbuf parameters to program the INSTPM bit
for whether 3DSTATE_CONSTANT_* should be relative to dynamic state
base address or an absolute address.  However, they never worked in
the presence of hardware contexts, so I deleted them a while back.

It doesn't make sense to set this flag, as it doesn't exist anymore.
It also never did anything anyway - the flag is zero, so |'ing it in
did nothing.  The default is relative anyway.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_batch_chain.c

index 85444e64cec9a8f9c3cd51f881259ede31f036cc..13d55e0efe1d31d61c2a6e730f4f76fa53f68302 100644 (file)
@@ -1375,8 +1375,7 @@ setup_execbuf_for_cmd_buffer(struct anv_execbuf *execbuf,
       .num_cliprects = 0,
       .DR1 = 0,
       .DR4 = 0,
-      .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER |
-               I915_EXEC_CONSTANTS_REL_GENERAL,
+      .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER,
       .rsvd1 = cmd_buffer->device->context_id,
       .rsvd2 = 0,
    };