OSDN Git Service

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 a7de4e8..a8b3566 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)