Mesa (master): i965simple: remove pipe_texture::compressed reference

Brian Paul brianp at kemper.freedesktop.org
Thu Apr 9 22:04:42 UTC 2009


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

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

i965simple: remove pipe_texture::compressed reference

---

 src/gallium/drivers/i965simple/brw_tex_layout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i965simple/brw_tex_layout.c b/src/gallium/drivers/i965simple/brw_tex_layout.c
index f44bd17..8aea8c0 100644
--- a/src/gallium/drivers/i965simple/brw_tex_layout.c
+++ b/src/gallium/drivers/i965simple/brw_tex_layout.c
@@ -240,7 +240,7 @@ static boolean brw_miptree_layout(struct brw_texture *tex)
          nblocksx = pf_get_nblocksx(&pt->block, width);
          nblocksy = pf_get_nblocksy(&pt->block, height);
 
-         if (pt->compressed) {
+         if (pf_is_compressed(pt->format)) {
             pack_y_pitch = (height + 3) / 4;
 
             if (pack_x_pitch > align(width, align_w)) {




More information about the mesa-commit mailing list