From: Gurchetan Singh Date: Tue, 14 Jan 2020 01:56:41 +0000 (-0800) Subject: st/mesa: refactor egl image binding a bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f1032f8f20088078238d12f15a6b9f4dc41d884;p=mesa.git st/mesa: refactor egl image binding a bit We'll need it for egl image tex storage. Acked-by: Marek Olšák Part-of: --- diff --git a/src/mesa/state_tracker/st_cb_eglimage.c b/src/mesa/state_tracker/st_cb_eglimage.c index 3b0460b6876..de1a6003ca4 100644 --- a/src/mesa/state_tracker/st_cb_eglimage.c +++ b/src/mesa/state_tracker/st_cb_eglimage.c @@ -211,7 +211,8 @@ static void st_bind_egl_image(struct gl_context *ctx, struct gl_texture_object *texObj, struct gl_texture_image *texImage, - struct st_egl_image *stimg) + struct st_egl_image *stimg, + bool tex_storage) { struct st_context *st = st_context(ctx); struct st_texture_object *stObj; @@ -303,7 +304,7 @@ st_egl_image_target_texture_2d(struct gl_context *ctx, GLenum target, "glEGLImageTargetTexture2D", &stimg)) return; - st_bind_egl_image(ctx, texObj, texImage, &stimg); + st_bind_egl_image(ctx, texObj, texImage, &stimg, false); pipe_resource_reference(&stimg.texture, NULL); }