From 2f1032f8f20088078238d12f15a6b9f4dc41d884 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Mon, 13 Jan 2020 17:56:41 -0800 Subject: [PATCH] st/mesa: refactor egl image binding a bit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We'll need it for egl image tex storage. Acked-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_cb_eglimage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.30.2