r600g: add missing r32 uint/sint fbo formats.
authorDave Airlie <airlied@redhat.com>
Sat, 14 Jan 2012 17:32:14 +0000 (17:32 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 14 Jan 2012 18:42:42 +0000 (18:42 +0000)
Fixes the GL3 required formats test.

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

index df6ad28681e5dba98323ad503bb7c96bb5aee0ec..dd8b8300a09affc9eb79ecf4123cfe068fd0c710 100644 (file)
@@ -508,6 +508,10 @@ static uint32_t r600_translate_colorformat(enum pipe_format format)
        case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT:
                return V_028C70_COLOR_X24_8_32_FLOAT;
 
+       case PIPE_FORMAT_R32_UINT:
+       case PIPE_FORMAT_R32_SINT:
+               return V_028C70_COLOR_32;
+
        case PIPE_FORMAT_R32_FLOAT:
        case PIPE_FORMAT_Z32_FLOAT:
                return V_028C70_COLOR_32_FLOAT;
index 5fe038e79e5dc215c507e2dcf8ac93cdbea28ae9..39ab247ce5cf6e410c16171684d14df399404a5d 100644 (file)
@@ -509,6 +509,10 @@ static uint32_t r600_translate_colorformat(enum pipe_format format)
        case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT:
                return V_0280A0_COLOR_X24_8_32_FLOAT;
 
+       case PIPE_FORMAT_R32_UINT:
+       case PIPE_FORMAT_R32_SINT:
+               return V_0280A0_COLOR_32;
+
        case PIPE_FORMAT_R32_FLOAT:
        case PIPE_FORMAT_Z32_FLOAT:
                return V_0280A0_COLOR_32_FLOAT;