[PATCH 3/7] glamor: Drop the dead "PBO" field in an FBO cache struct.

Eric Anholt eric at anholt.net
Tue Mar 24 13:25:52 PDT 2015


PBOs are only used at the whole pixmap level.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glamor/glamor_fbo.c  | 2 --
 glamor/glamor_priv.h | 2 --
 2 files changed, 4 deletions(-)

diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c
index aedc804..5d59913 100644
--- a/glamor/glamor_fbo.c
+++ b/glamor/glamor_fbo.c
@@ -121,8 +121,6 @@ glamor_purge_fbo(glamor_screen_private *glamor_priv,
         glDeleteFramebuffers(1, &fbo->fb);
     if (fbo->tex)
         glDeleteTextures(1, &fbo->tex);
-    if (fbo->pbo)
-        glDeleteBuffers(1, &fbo->pbo);
 
     free(fbo);
 }
diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h
index db0300c..7893ec0 100644
--- a/glamor/glamor_priv.h
+++ b/glamor/glamor_priv.h
@@ -348,7 +348,6 @@ enum glamor_fbo_state {
  * 	     larger than this expire count in block handler.
  * @tex:     attached texture.
  * @fb:      attached fbo.
- * @pbo:     attached pbo.
  * @width:   width of this fbo.
  * @height:  height of this fbo.
  * @external set when the texture was not created by glamor
@@ -361,7 +360,6 @@ typedef struct glamor_pixmap_fbo {
     unsigned int expire;
     GLuint tex;
     GLuint fb;
-    GLuint pbo;
     int width;
     int height;
     Bool external;
-- 
2.1.4



More information about the xorg-devel mailing list