summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-09-19 09:34:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-09-19 09:34:32 +0100
commitb45dbdbd446108745b39b305303b457f5e876989 (patch)
tree88fdbf95068f0457e30fae47b773025afd703fd7
parent15c5ff12459a034b552c787047d1af6d61047cd6 (diff)
sna: Update sanity check for next stage of Xorg ABI
Now X will set the scrn->screen backpointer before Init, update our assertion to track. Reported-by: Nick Sarnie <commendsarnex@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97855 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 841ccd11..57562b2c 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -1105,7 +1105,8 @@ sna_screen_init(SCREEN_INIT_ARGS_DECL)
DBG(("%s\n", __FUNCTION__));
assert(sna->scrn == scrn);
- assert(to_screen_from_sna(sna) == NULL); /* set afterwards */
+ assert(to_screen_from_sna(sna) == NULL || /* set afterwards */
+ to_screen_from_sna(sna) == screen);
assert(sna->freed_pixmap == NULL);