st/dri: check pscreen is valid before querying param
authorDave Airlie <airlied@gmail.com>
Wed, 10 Jun 2015 03:51:59 +0000 (13:51 +1000)
committerDave Airlie <airlied@gmail.com>
Wed, 10 Jun 2015 04:10:33 +0000 (14:10 +1000)
commit563706c14641fde2ab604d590b5425680354f280
treebca3403366a614c0b9323f499b65194e319b7e23
parentc6877c9e5983287a0741b26a358b7d744aebe232
st/dri: check pscreen is valid before querying param

we don't check the validity of pscreen until dri_init_screen_helper

hit this trying to init glamor on a device with no driver (udl).

Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/state_trackers/dri/dri2.c