Mesa (master): st_api: remove unused get_resource_for_egl_image

Nicolai Hähnle nh at kemper.freedesktop.org
Tue Oct 10 12:04:00 UTC 2017


Module: Mesa
Branch: master
Commit: fbcae1897be19203c95f3633dd38e3436768e3a8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbcae1897be19203c95f3633dd38e3436768e3a8

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Tue Oct 10 13:58:48 2017 +0200

st_api: remove unused get_resource_for_egl_image

Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

---

 src/gallium/include/state_tracker/st_api.h | 37 ------------------------------
 1 file changed, 37 deletions(-)

diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h
index 4d27dad5c5..2232c3efa1 100644
--- a/src/gallium/include/state_tracker/st_api.h
+++ b/src/gallium/include/state_tracker/st_api.h
@@ -141,22 +141,6 @@ enum st_attachment_type {
 #define ST_ATTACHMENT_SAMPLE_MASK         (1 << ST_ATTACHMENT_SAMPLE)
 
 /**
- * Enumerations of state tracker context resources.
- */
-enum st_context_resource_type {
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_2D,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_3D,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_CUBE_MAP_POSITIVE_X,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_CUBE_MAP_NEGATIVE_X,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_CUBE_MAP_POSITIVE_Y,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_CUBE_MAP_POSITIVE_Z,
-   ST_CONTEXT_RESOURCE_OPENGL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
-   ST_CONTEXT_RESOURCE_OPENGL_RENDERBUFFER,
-   ST_CONTEXT_RESOURCE_OPENVG_PARENT_IMAGE
-};
-
-/**
  * Flush flags.
  */
 #define ST_FLUSH_FRONT                    (1 << 0)
@@ -183,19 +167,6 @@ struct pipe_fence_handle;
 struct util_queue_monitoring;
 
 /**
- * Used in st_context_iface->get_resource_for_egl_image.
- */
-struct st_context_resource
-{
-   /* these fields are filled in by the caller */
-   enum st_context_resource_type type;
-   void *resource;
-
-   /* this is owned by the caller */
-   struct pipe_resource *texture;
-};
-
-/**
  * Used in st_manager_iface->get_egl_image.
  */
 struct st_egl_image
@@ -432,14 +403,6 @@ struct st_context_iface
                     struct st_context_iface *stsrci);
 
    /**
-    * Look up and return the info of a resource for EGLImage.
-    *
-    * This function is optional.
-    */
-   boolean (*get_resource_for_egl_image)(struct st_context_iface *stctxi,
-                                         struct st_context_resource *stres);
-
-   /**
     * Start the thread if the API has a worker thread.
     * Called after the context has been created and fully initialized on both
     * sides (e.g. st/mesa and st/dri).




More information about the mesa-commit mailing list