st/xorg: Only reference new picture formats when they're defined.
authorMichel Dänzer <daenzer@vmware.com>
Mon, 16 Nov 2009 10:59:39 +0000 (11:59 +0100)
committerMichel Dänzer <daenzer@vmware.com>
Mon, 16 Nov 2009 10:59:39 +0000 (11:59 +0100)
Fixes http://bugs.freedesktop.org/show_bug.cgi/?id=25094 .

src/gallium/state_trackers/xorg/xorg_exa.c

index a77ee7a9084c2afb8ef5e82a6adcc771b4299d2f..735cabfedfc654442e0432dadc9513313d0d9fbf 100644 (file)
@@ -57,16 +57,18 @@ struct render_format_str {
 };
 static const struct render_format_str formats_info[] =
 {
-   {PICT_a2r10g10b10, "PICT_a2r10g10b10"},
-   {PICT_x2r10g10b10, "PICT_x2r10g10b10"},
-   {PICT_a2b10g10r10, "PICT_a2b10g10r10"},
-   {PICT_x2b10g10r10, "PICT_x2b10g10r10"},
    {PICT_a8r8g8b8, "PICT_a8r8g8b8"},
    {PICT_x8r8g8b8, "PICT_x8r8g8b8"},
    {PICT_a8b8g8r8, "PICT_a8b8g8r8"},
    {PICT_x8b8g8r8, "PICT_x8b8g8r8"},
+#ifdef PICT_TYPE_BGRA
    {PICT_b8g8r8a8, "PICT_b8g8r8a8"},
    {PICT_b8g8r8x8, "PICT_b8g8r8x8"},
+   {PICT_a2r10g10b10, "PICT_a2r10g10b10"},
+   {PICT_x2r10g10b10, "PICT_x2r10g10b10"},
+   {PICT_a2b10g10r10, "PICT_a2b10g10r10"},
+   {PICT_x2b10g10r10, "PICT_x2b10g10r10"},
+#endif
    {PICT_r8g8b8, "PICT_r8g8b8"},
    {PICT_b8g8r8, "PICT_b8g8r8"},
    {PICT_r5g6b5, "PICT_r5g6b5"},