r600g: add framebuffer support for 2/10/10/10 integer
authorDave Airlie <airlied@redhat.com>
Sun, 27 Nov 2011 20:33:37 +0000 (20:33 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 27 Nov 2011 20:36:27 +0000 (20:36 +0000)
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 2445194135b2e5ff9035d8fcfc8b500e3141fbdc..d0c02d552a478efc6ea99dcf792180bee2802d3c 100644 (file)
@@ -368,6 +368,7 @@ static uint32_t r600_translate_colorswap(enum pipe_format format)
                return V_028C70_SWAP_STD;
 
        case PIPE_FORMAT_B10G10R10A2_UNORM:
+       case PIPE_FORMAT_B10G10R10A2_UINT:
                return V_028C70_SWAP_ALT;
 
        case PIPE_FORMAT_R11G11B10_FLOAT:
@@ -490,6 +491,7 @@ static uint32_t r600_translate_colorformat(enum pipe_format format)
        case PIPE_FORMAT_R10G10B10A2_UNORM:
        case PIPE_FORMAT_R10G10B10X2_SNORM:
        case PIPE_FORMAT_B10G10R10A2_UNORM:
+       case PIPE_FORMAT_B10G10R10A2_UINT:
        case PIPE_FORMAT_R10SG10SB10SA2U_NORM:
                return V_028C70_COLOR_2_10_10_10;
 
index e38d1c9099ff0fb8a8bd3f06a377adb16ed16e89..8410cfe352feba391e1eb8a724eacceb244d7d11 100644 (file)
@@ -369,6 +369,7 @@ static uint32_t r600_translate_colorswap(enum pipe_format format)
                return V_0280A0_SWAP_STD;
 
        case PIPE_FORMAT_B10G10R10A2_UNORM:
+       case PIPE_FORMAT_B10G10R10A2_UINT:
                return V_0280A0_SWAP_ALT;
 
        case PIPE_FORMAT_R11G11B10_FLOAT:
@@ -491,6 +492,7 @@ static uint32_t r600_translate_colorformat(enum pipe_format format)
        case PIPE_FORMAT_R10G10B10A2_UNORM:
        case PIPE_FORMAT_R10G10B10X2_SNORM:
        case PIPE_FORMAT_B10G10R10A2_UNORM:
+       case PIPE_FORMAT_B10G10R10A2_UINT:
        case PIPE_FORMAT_R10SG10SB10SA2U_NORM:
                return V_0280A0_COLOR_2_10_10_10;