summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-08-22 13:39:23 -0700
committerIago Toral Quiroga <[email protected]>2015-01-12 11:20:27 +0100
commitec0bfba49668875462dfd75f4824f48018e82efe (patch)
tree2ff2261e86b7928f710977a2a61444621a090e6e /src/mesa/main/formats.h
parent7d1b08ac44cf2531b0df39f52ead93ad216ea233 (diff)
mesa: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM
Aparently, the packing/unpacking functions for these formats have differed from the format description in formats.h. Instead of fixing this, people simply left a comment saying it was broken. Let's actually fix it for real. v2 by Samuel Iglesias <[email protected]>: - Fix comment in formats.h Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r--src/mesa/main/formats.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
index 213ab563d2a..d0959906b3e 100644
--- a/src/mesa/main/formats.h
+++ b/src/mesa/main/formats.h
@@ -139,9 +139,9 @@ typedef enum
* ** when type applies to all components
*
* examples: msb <------ TEXEL BITS -----------> lsb
- * MESA_FORMAT_A8B8G8R8_UNORM, AAAA AAAA BBBB BBBB GGGG GGGG RRRR RRRR
- * MESA_FORMAT_R5G6B5_UNORM RRRR RGGG GGGB BBBB
- * MESA_FORMAT_B4G4R4X4_UNORM BBBB GGGG RRRR XXXX
+ * MESA_FORMAT_A8B8G8R8_UNORM, RRRR RRRR GGGG GGGG BBBB BBBB AAAA AAAA
+ * MESA_FORMAT_R5G6B5_UNORM BBBB BGGG GGGR RRRR
+ * MESA_FORMAT_B4G4R4X4_UNORM XXXX RRRR GGGG BBBB
* MESA_FORMAT_Z32_FLOAT_S8X24_UINT
* MESA_FORMAT_R10G10B10A2_UINT
* MESA_FORMAT_R9G9B9E5_FLOAT