r600g: Add R8G8B8A8_UNORM to evergreen colorswap table
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 23 Jun 2011 12:31:15 +0000 (14:31 +0200)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 23 Jun 2011 19:06:36 +0000 (21:06 +0200)
Fixes broken glTexImage2D with format=GL_RGBA since
1a339b6c71ebab6e1a64f05b2e133022d3bbcd15

The origin for this behaviour is that r600_is_format_supported
checks only against r600_state_inline.h tables not evergreens.

src/gallium/drivers/r600/eg_state_inlines.h

index f8891781be866721bcae0e9c105fccbe4c1b6a8e..af2ec56983058264ef02b6cb30a540c7da48cb32 100644 (file)
@@ -343,6 +343,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format)
        case PIPE_FORMAT_X8R8G8B8_UNORM:
                return V_028C70_SWAP_ALT_REV;
        case PIPE_FORMAT_R8G8B8A8_SNORM:
+       case PIPE_FORMAT_R8G8B8A8_UNORM:
        case PIPE_FORMAT_R8G8B8X8_UNORM:
                return V_028C70_SWAP_STD;