summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-18 22:08:06 -0700
committerBrian Paul <brianp@vmware.com>2009-11-18 22:08:06 -0700
commite6d44ab2b9b6646ee93ec032b32e60ad40fb10b5 (patch)
tree72d052cf08cdb4c729b51a4e6acb7800bc9842f1
parent2911403dde916f0542ce4b06f12340cb22702dcf (diff)
intel: added cases for compressed SRGB
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index 02e2a0a07a..3ae49387f7 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -46,11 +46,16 @@ intel_compressed_num_bytes(gl_format mesaFormat)
switch(mesaFormat) {
case MESA_FORMAT_RGB_FXT1:
case MESA_FORMAT_RGBA_FXT1:
+ return 2;
case MESA_FORMAT_RGB_DXT1:
case MESA_FORMAT_RGBA_DXT1:
+ case MESA_FORMAT_SRGB_DXT1:
+ case MESA_FORMAT_SRGBA_DXT1:
return 2;
case MESA_FORMAT_RGBA_DXT3:
case MESA_FORMAT_RGBA_DXT5:
+ case MESA_FORMAT_SRGBA_DXT3:
+ case MESA_FORMAT_SRGBA_DXT5:
return 4;
default:
return 0;