Mesa (master): intel: Fix intel_compressed_num_bytes for FXT1 after I broke it.

Eric Anholt anholt at kemper.freedesktop.org
Fri Jun 4 19:46:52 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jun  4 12:43:15 2010 -0700

intel: Fix intel_compressed_num_bytes for FXT1 after I broke it.

Fixes piglit fxt1-teximage since
7554b83a21bd62b20df5a7327b69f08108ac9ab6, and also OGLC tests that hit
FXT1 with a million other things.

Bug #28184.

---

 src/mesa/drivers/dri/intel/intel_tex_format.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_format.c b/src/mesa/drivers/dri/intel/intel_tex_format.c
index 610a169..b42d6f3 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_format.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_format.c
@@ -214,5 +214,5 @@ int intel_compressed_num_bytes(GLuint mesaFormat)
    block_size = _mesa_get_format_bytes(mesaFormat);
    _mesa_get_format_block_size(mesaFormat, &bw, &bh);
 
-   return block_size / bh;
+   return block_size / bw;
 }




More information about the mesa-commit mailing list