diff options
author | Dave Airlie <[email protected]> | 2010-09-23 20:45:01 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-09-24 12:34:43 +1000 |
commit | 4388087f199f020e15024c908ba840a250cf29e1 (patch) | |
tree | 3231eb3a2cba1ebcdee9ef7d40a09eaba54334fa /src/gallium | |
parent | 85a45dcd5d2a6d4ba5ab414d4e7d4285ac998385 (diff) |
r600g: add vert support for 16/16 and 16/16/16 floats.
makes draw-vertices-half-float pass
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_state_inlines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h index 283f1e59b33..3a2c08da0bd 100644 --- a/src/gallium/drivers/r600/r600_state_inlines.h +++ b/src/gallium/drivers/r600/r600_state_inlines.h @@ -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: |