From ee6a40fd01871b79a391646e15ce76bd9d5c1138 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 3 Feb 2017 21:57:33 +0000 Subject: igt: Skip MI_STORE_DWORD_IMM on gen2 On gen2 MI_STORE_DWORD_IMM operates on a physical, not virtual, address i.e. we can't use it. Signed-off-by: Chris Wilson --- tests/kms_atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_atomic.c') diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c index e794a62b..d6273f4f 100644 --- a/tests/kms_atomic.c +++ b/tests/kms_atomic.c @@ -443,7 +443,7 @@ static void crtc_populate_req(struct kms_atomic_crtc_state *crtc, { if (crtc->out_fence_ptr) crtc_set_prop(req, crtc, IGT_CRTC_OUT_FENCE_PTR, - (uint64_t) crtc->out_fence_ptr); + to_user_pointer(crtc->out_fence_ptr)); crtc_set_prop(req, crtc, IGT_CRTC_MODE_ID, crtc->mode.id); crtc_set_prop(req, crtc, IGT_CRTC_ACTIVE, crtc->active); -- cgit v1.2.3