mesa: fix comments for RG formats
authorBrian Paul <brianp@vmware.com>
Tue, 29 Nov 2011 01:09:14 +0000 (18:09 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 29 Nov 2011 01:10:30 +0000 (18:10 -0700)
The position of the red and green bits was misstated in the comments.
Arguably, the names of these formats should be changed to "GR" to reflect
the component ordering and to be consistent with other formats.

src/mesa/main/formats.h

index 86990929623eb3a60b2ac3bff19391dd013a6a0a..12c5cb6746c14917e8d5dc18faadd7298390a26f 100644 (file)
@@ -91,11 +91,11 @@ typedef enum
    MESA_FORMAT_YCBCR,          /*                     YYYY YYYY UorV UorV */
    MESA_FORMAT_YCBCR_REV,      /*                     UorV UorV YYYY YYYY */
    MESA_FORMAT_R8,             /*                               RRRR RRRR */
-   MESA_FORMAT_RG88,           /*                     RRRR RRRR GGGG GGGG */
-   MESA_FORMAT_RG88_REV,       /*                     GGGG GGGG RRRR RRRR */
+   MESA_FORMAT_RG88,           /*                     GGGG GGGG RRRR RRRR */
+   MESA_FORMAT_RG88_REV,       /*                     RRRR RRRR GGGG GGGG */
    MESA_FORMAT_R16,            /*                     RRRR RRRR RRRR RRRR */
-   MESA_FORMAT_RG1616,         /* RRRR RRRR RRRR RRRR GGGG GGGG GGGG GGGG */
-   MESA_FORMAT_RG1616_REV,     /* GGGG GGGG GGGG GGGG RRRR RRRR RRRR RRRR */
+   MESA_FORMAT_RG1616,         /* GGGG GGGG GGGG GGGG RRRR RRRR RRRR RRRR */
+   MESA_FORMAT_RG1616_REV,     /* RRRR RRRR RRRR RRRR GGGG GGGG GGGG GGGG */
    MESA_FORMAT_ARGB2101010,     /* AARR RRRR RRRR GGGG GGGG GGBB BBBB BBBB */
    MESA_FORMAT_Z24_S8,          /* ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ SSSS SSSS */
    MESA_FORMAT_S8_Z24,          /* SSSS SSSS ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ */