Mesa (master): st: remove another unneeded 'is compressed' comparison

Brian Paul brianp at kemper.freedesktop.org
Thu Apr 9 21:03:04 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Apr  9 15:00:54 2009 -0600

st: remove another unneeded 'is compressed' comparison

---

 src/mesa/state_tracker/st_cb_texture.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index bd023e0..57c0544 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -1394,8 +1394,9 @@ st_finalize_texture(GLcontext *ctx,
           stObj->pt->width[0] != firstImage->base.Width2 ||
           stObj->pt->height[0] != firstImage->base.Height2 ||
           stObj->pt->depth[0] != firstImage->base.Depth2 ||
-          stObj->pt->block.size/stObj->pt->block.width != cpp || /* Nominal bytes per pixel */
-          stObj->pt->compressed != firstImage->base.IsCompressed) {
+          /* Nominal bytes per pixel: */
+          stObj->pt->block.size / stObj->pt->block.width != cpp)
+      {
          pipe_texture_reference(&stObj->pt, NULL);
          ctx->st->dirty.st |= ST_NEW_FRAMEBUFFER;
       }




More information about the mesa-commit mailing list