r600g: fixup missing scaled r600 types.
authorDave Airlie <airlied@redhat.com>
Fri, 16 Sep 2011 13:08:30 +0000 (14:08 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 16 Sep 2011 13:09:16 +0000 (14:09 +0100)
I was still missing a couple of types on r600/r700 codepaths.

Fixes these up.

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

index f6a840a9cde9192118e828a46984011e9adaee07..2e2ce40d4476c4015c283558b18b2590f84ff194 100644 (file)
@@ -377,6 +377,8 @@ static uint32_t r600_translate_colorswap(enum pipe_format format)
        case PIPE_FORMAT_R32G32B32A32_FLOAT:
        case PIPE_FORMAT_R32G32B32A32_SNORM:
        case PIPE_FORMAT_R32G32B32A32_UNORM:
+       case PIPE_FORMAT_R32G32B32A32_USCALED:
+       case PIPE_FORMAT_R32G32B32A32_SSCALED:
                return V_0280A0_SWAP_STD;
        default:
                R600_ERR("unsupported colorswap format %d\n", format);
@@ -506,6 +508,8 @@ static uint32_t r600_translate_colorformat(enum pipe_format format)
                return V_0280A0_COLOR_32_32_32_32_FLOAT;
        case PIPE_FORMAT_R32G32B32A32_SNORM:
        case PIPE_FORMAT_R32G32B32A32_UNORM:
+       case PIPE_FORMAT_R32G32B32A32_SSCALED:
+       case PIPE_FORMAT_R32G32B32A32_USCALED:
                return V_0280A0_COLOR_32_32_32_32;
 
        /* YUV buffers. */