Commit 8d986c8c authored by Kenneth Graunke's avatar Kenneth Graunke

intel_stub: Claim to support I915_PARAM_HAS_CONTEXT_ISOLATION.

Modern kernels support I915_PARAM_HAS_CONTEXT_ISOLATION, which allows
us to whack certain context registers with impunity.  One of those is
INSTPM/CS_DEBUG_MODE2, which controls whether Constant Buffer 0 is
relative to dynamic state base address, or a general GPU address.
If it's relative (the default), we can only push 3 ranges of UBOs.
If it's absolute, we can push 4.  So this affects our shader output.

Follow the behavior of modern kernels and allow us to push all 4 ranges.
Tested-by: 's avatarIan Romanick <ian.d.romanick@intel.com>
parent 372703f3
......@@ -262,6 +262,7 @@ ioctl(int fd, unsigned long request, ...)
case I915_PARAM_HAS_RELAXED_DELTA:
case I915_PARAM_HAS_WAIT_TIMEOUT:
case I915_PARAM_HAS_EXEC_NO_RELOC:
case I915_PARAM_HAS_CONTEXT_ISOLATION:
*getparam->value = 1;
break;
case I915_PARAM_CHIPSET_ID:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment