diff options
author | Eric Anholt <eric@anholt.net> | 2016-02-01 13:58:06 -0800 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-10 11:12:42 -0500 |
commit | 1bed5ef2b80c77c1bb9b62971367bea864fd8f66 (patch) | |
tree | 79084300a944f67f81ab6e5a80bf0cbfc614b68e | |
parent | ee7ca670b1695d64bc12cb37302913acc066a569 (diff) |
glamor: Drop dead fbo handling from GLAMOR_MEMORY pict uploads.
The previous commit asserts that we don't have one.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | glamor/glamor_picture.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index 9bb2c748c..a032ed090 100644 --- a/glamor/glamor_picture.c +++ b/glamor/glamor_picture.c @@ -734,27 +734,10 @@ glamor_pixmap_upload_prepare(PixmapPtr pixmap, GLenum format, int no_alpha, int revert, int swap_rb) { int flag = 0; - glamor_pixmap_private *pixmap_priv; - glamor_screen_private *glamor_priv; - glamor_pixmap_fbo *fbo; + glamor_screen_private *glamor_priv = + glamor_get_screen_private(pixmap->drawable.pScreen); GLenum iformat; - pixmap_priv = glamor_get_pixmap_private(pixmap); - glamor_priv = glamor_get_screen_private(pixmap->drawable.pScreen); - - if (pixmap_priv->gl_fbo != GLAMOR_FBO_UNATTACHED) - return 0; - - if (pixmap_priv->fbo - && (pixmap_priv->fbo->width < pixmap->drawable.width - || pixmap_priv->fbo->height < pixmap->drawable.height)) { - fbo = glamor_pixmap_detach_fbo(pixmap_priv); - glamor_destroy_fbo(glamor_priv, fbo); - } - - if (pixmap_priv->fbo && pixmap_priv->fbo->fb) - return 0; - if (!(no_alpha || (revert == REVERT_NORMAL) || (swap_rb != SWAP_NONE_UPLOADING))) { /* We don't need a fbo, a simple texture uploading should work. */ @@ -762,10 +745,6 @@ glamor_pixmap_upload_prepare(PixmapPtr pixmap, GLenum format, int no_alpha, flag = GLAMOR_CREATE_FBO_NO_FBO; } - if ((flag == GLAMOR_CREATE_FBO_NO_FBO - && pixmap_priv->fbo && pixmap_priv->fbo->tex)) - return 0; - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) iformat = gl_iformat_for_pixmap(pixmap); else |