st/mesa: move st_manager_get_egl_image_surface into st_cb_eglimage.c
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 29 Mar 2017 07:44:20 +0000 (09:44 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 29 Mar 2017 16:04:12 +0000 (18:04 +0200)
commitd10172d52791b1fc0b791dd10c823668ecb7a4f8
tree9760aaa4786acda22389553da6ce42a239b7d7a9
parent2f8d6bd57844f86547b95d1381c82aaceb83c356
st/mesa: move st_manager_get_egl_image_surface into st_cb_eglimage.c

The only callers are here, and we will add generation of GL errors in
the following patch.  Rename the function to st_egl_image_get_surface,
pass the gl_context instead of st_context, and move the cast from
GLeglImageOES to void* into st_egl_image_get_surface.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_manager.c
src/mesa/state_tracker/st_manager.h