OSDN Git Service

st/mesa: refactor egl image binding a bit
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 14 Jan 2020 01:56:41 +0000 (17:56 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jan 2020 01:18:54 +0000 (01:18 +0000)
We'll need it for egl image tex storage.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3375>

src/mesa/state_tracker/st_cb_eglimage.c

index 3b0460b..de1a600 100644 (file)
@@ -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);
 }