r600g: add vert support for 16/16 and 16/16/16 floats.
authorDave Airlie <airlied@redhat.com>
Thu, 23 Sep 2010 10:45:01 +0000 (20:45 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 24 Sep 2010 02:34:43 +0000 (12:34 +1000)
makes draw-vertices-half-float pass

src/gallium/drivers/r600/r600_state_inlines.h

index 283f1e59b330a9ea5ee80834e38c50764a6643c3..3a2c08da0bdd87599735d0c8083a5c8dbd5b1101 100644 (file)
@@ -400,6 +400,9 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
 
        case PIPE_FORMAT_R32_FLOAT:
                return V_0280A0_COLOR_32_FLOAT;
+       case PIPE_FORMAT_R16G16_FLOAT:
+       case PIPE_FORMAT_R16G16B16_FLOAT:
+               return V_0280A0_COLOR_16_16_16_16_FLOAT;
 
                /* 64-bit buffers. */
        case PIPE_FORMAT_R16G16B16A16_UNORM: