[Mesa-dev] [PATCH] intel_stub: Claim to support I915_PARAM_HAS_CONTEXT_ISOLATION.
Kenneth Graunke
kenneth at whitecape.org
Thu Jul 26 23:13:40 UTC 2018
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.
---
intel_stub.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/intel_stub.c b/intel_stub.c
index a3316b1..8b8db64 100644
--- a/intel_stub.c
+++ b/intel_stub.c
@@ -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:
--
2.18.0
More information about the mesa-dev
mailing list