vc4: Fix swapped 565 dithering versus no-dithering render configs.
authorEric Anholt <eric@anholt.net>
Wed, 24 Sep 2014 20:41:24 +0000 (13:41 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 24 Sep 2014 22:56:39 +0000 (15:56 -0700)
Fixes many 565 piglit tests (like fbo-generatemipmap-formats) that weren't
expecting dithering.

src/gallium/drivers/vc4/vc4_packet.h

index a7de4e8ccc52f2c7dd32cc16cd7c5fa98f7d5274..a8b3566c5c6025eaf23568c3745d3e803f6b3bab 100644 (file)
@@ -214,9 +214,9 @@ enum vc4_packet {
 #define VC4_RENDER_CONFIG_DECIMATE_MODE_4X         (1 << 4)
 #define VC4_RENDER_CONFIG_DECIMATE_MODE_16X        (2 << 4)
 
-#define VC4_RENDER_CONFIG_FORMAT_BGR565            (0 << 2)
+#define VC4_RENDER_CONFIG_FORMAT_BGR565_DITHERED   (0 << 2)
 #define VC4_RENDER_CONFIG_FORMAT_RGBA8888          (1 << 2)
-#define VC4_RENDER_CONFIG_FORMAT_BGR565_DITHERED   (2 << 2)
+#define VC4_RENDER_CONFIG_FORMAT_BGR565            (2 << 2)
 #define VC4_RENDER_CONFIG_FORMAT_MASK              (3 << 2)
 
 #define VC4_RENDER_CONFIG_TILE_BUFFER_64BIT        (1 << 1)