intel: Fix intel_compressed_num_bytes for FXT1 after I broke it.
authorEric Anholt <eric@anholt.net>
Fri, 4 Jun 2010 19:43:15 +0000 (12:43 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Jun 2010 19:43:15 +0000 (12:43 -0700)
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

index 610a169beb2d7e7fb0c8838aafc0cbba3b6f0848..b42d6f3155c550c42bd821697e96ef63d2e44bde 100644 (file)
@@ -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;
 }