summaryrefslogtreecommitdiff
path: root/tests/kms_atomic.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-03 21:57:33 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-03 21:08:03 +0000
commitee6a40fd01871b79a391646e15ce76bd9d5c1138 (patch)
tree75d2ffffa9baa7cbd64c10a040014ce3d3982b82 /tests/kms_atomic.c
parentba0d1dcb2b6e6a5ec6cb1645988df7c8eccec5c3 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_atomic.c')
-rw-r--r--tests/kms_atomic.c2
1 files changed, 1 insertions, 1 deletions
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);