[Intel-gfx] [PATCH i-g-t] i915/gem_ctx_shared: Fixup vec0 mmio base for icl

Chris Wilson chris at chris-wilson.co.uk
Tue Jun 4 16:29:12 UTC 2019


I told vecs0 to use vecs1 registers...

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/i915/gem_ctx_shared.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
index 67ecd0953..069964546 100644
--- a/tests/i915/gem_ctx_shared.c
+++ b/tests/i915/gem_ctx_shared.c
@@ -544,9 +544,11 @@ static void independent(int i915, unsigned ring, unsigned flags)
 		mmio_base = 0x22000;
 		break;
 
+#define GEN11_VECS0_BASE 0x1c8000
+#define GEN11_VECS1_BASE 0x1d8000
 	case I915_EXEC_VEBOX:
 		if (intel_gen(intel_get_drm_devid(i915)) >= 11)
-			mmio_base = 0x1d8000;
+			mmio_base = GEN11_VECS0_BASE;
 		else
 			mmio_base = 0x1a000;
 		break;
-- 
2.20.1



More information about the Intel-gfx mailing list