st/dri: NULL check the pscreen earlier
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Oct 2015 23:46:26 +0000 (00:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:20 +0000 (12:52 +0000)
commite43a771dfa5b99899a4a09cdd2989afc25eef17c
tree22b460c5d04d3c7a087deb6ac75184087c634edd
parent13bccee87d6344ec7932b42de3fe3a2d10d30d96
st/dri: NULL check the pscreen earlier

We delay the null check only to jump through hoops to work around that.
Check early to make our lives easier.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_screen.c
src/gallium/state_trackers/dri/drisw.c