gallium: Check pipe_screen::resource_changed before dereferencing it
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 12 Jul 2018 14:29:51 +0000 (16:29 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 12 Jul 2018 15:39:12 +0000 (17:39 +0200)
commit34e89e4d3802ec9b4d7da178757bd82c44310653
tree8f3ba9ecd6a527804c22e069c5a4476b1a04b1c0
parentc2587ac4e58353657c3a38e259bc55ee1216716e
gallium: Check pipe_screen::resource_changed before dereferencing it

It's optional, only implemented by the etnaviv driver so far.

Fixes: 501d0edeca32 "st/mesa: call resource_changed when binding a
                     EGLImage to a texture"
Fixes: a37cf630b4d1 "gallium: add pipe_screen::resource_changed callback
                     wrappers"
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/auxiliary/driver_ddebug/dd_screen.c
src/gallium/auxiliary/driver_rbug/rbug_screen.c
src/gallium/auxiliary/driver_trace/tr_screen.c
src/mesa/state_tracker/st_cb_eglimage.c