r600g: add missing colorswaps for r8 uint/sint.
authorDave Airlie <airlied@redhat.com>
Mon, 2 Jan 2012 20:44:30 +0000 (20:44 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 2 Jan 2012 20:45:20 +0000 (20:45 +0000)
fixes some warnings in GL3.0 tests.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 6f5d6f7a643ba59972f07554f995ebffa2dd7a93..ed75ae3e61f7577b548994b47fdb9351e29e128a 100644 (file)
@@ -294,6 +294,8 @@ static uint32_t r600_translate_colorswap(enum pipe_format format)
        case PIPE_FORMAT_L8_SRGB:
        case PIPE_FORMAT_R8_UNORM:
        case PIPE_FORMAT_R8_SNORM:
+       case PIPE_FORMAT_R8_UINT:
+       case PIPE_FORMAT_R8_SINT:
                return V_028C70_SWAP_STD;
 
        /* 16-bit buffers. */
index 7f44035d7887d295c2fa85ee17b2bce7dbb368d3..12157ffd797a2ab9344505315662b95397833460 100644 (file)
@@ -290,6 +290,8 @@ static uint32_t r600_translate_colorswap(enum pipe_format format)
        case PIPE_FORMAT_L8_SRGB:
        case PIPE_FORMAT_R8_UNORM:
        case PIPE_FORMAT_R8_SNORM:
+       case PIPE_FORMAT_R8_UINT:
+       case PIPE_FORMAT_R8_SINT:
                return V_0280A0_SWAP_STD;
 
        case PIPE_FORMAT_L4A4_UNORM: