r600g: add missing vertex fetch formats to the translation table.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2010 03:32:25 +0000 (13:32 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2010 03:32:25 +0000 (13:32 +1000)
fixes at least 2 more piglits.

src/gallium/drivers/r600/r600_state_inlines.h
src/gallium/drivers/r600/r600d.h

index d67d4be6f83299761f20b8b4e4de539cf1b4fb87..84866825aab022de9013b9df1eef9ccba57a866f 100644 (file)
@@ -252,6 +252,7 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
        case PIPE_FORMAT_R8SG8SB8UX8U_NORM:
        case PIPE_FORMAT_X8B8G8R8_UNORM:
        case PIPE_FORMAT_X8R8G8B8_UNORM:
+       case PIPE_FORMAT_R8G8B8_UNORM:
                return V_0280A0_COLOR_8_8_8_8;
 
        case PIPE_FORMAT_R10G10B10A2_UNORM:
@@ -278,6 +279,7 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
 
                /* 128-bit buffers. */
        case PIPE_FORMAT_R32G32B32_FLOAT:
+               return V_0280A0_COLOR_32_32_32_FLOAT;
        case PIPE_FORMAT_R32G32B32A32_FLOAT:
                return V_0280A0_COLOR_32_32_32_32_FLOAT;
 
index 9bdfe4f966c5c7bd14c357ed285347f7a8259daa..7b9a983d53b30cb53a0935b38cb0fc3911a3298e 100644 (file)
 #define     V_0280A0_COLOR_16_16_16_16_FLOAT           0x00000020
 #define     V_0280A0_COLOR_32_32_32_32                 0x00000022
 #define     V_0280A0_COLOR_32_32_32_32_FLOAT           0x00000023
+#define     V_0280A0_COLOR_32_32_32_FLOAT              0x00000030
 #define   S_0280A0_ARRAY_MODE(x)                       (((x) & 0xF) << 8)
 #define   G_0280A0_ARRAY_MODE(x)                       (((x) >> 8) & 0xF)
 #define   C_0280A0_ARRAY_MODE                          0xFFFFF0FF