diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-02-14 21:58:00 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-02-14 21:58:52 +0100 |
commit | 558c15995f486d72b959ad19c914a38adbcbe5f7 (patch) | |
tree | 31edfb840723fc7c108fd77f7753dda1fc0b8686 /src/gallium/drivers/r300/r300_state_inlines.h | |
parent | 6e958832afe9544973528bed78dd3a340b8686f3 (diff) | |
download | external_mesa3d-558c15995f486d72b959ad19c914a38adbcbe5f7.zip external_mesa3d-558c15995f486d72b959ad19c914a38adbcbe5f7.tar.gz external_mesa3d-558c15995f486d72b959ad19c914a38adbcbe5f7.tar.bz2 |
r300: add half_float_vertex support
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_inlines.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_inlines.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_inlines.h b/src/gallium/drivers/r300/r300_state_inlines.h index b7676e1..6ee6cd0 100644 --- a/src/gallium/drivers/r300/r300_state_inlines.h +++ b/src/gallium/drivers/r300/r300_state_inlines.h @@ -507,6 +507,14 @@ r300_translate_vertex_data_type(enum pipe_format format) { /* Half-floats, floats, doubles */ case UTIL_FORMAT_TYPE_FLOAT: switch (util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 0)) { + case 16: + /* XXX Supported only on RV350 and later. */ + if (components > 2) { + result = R300_DATA_TYPE_FLT16_4; + } else { + result = R300_DATA_TYPE_FLT16_2; + } + break; case 32: result = R300_DATA_TYPE_FLOAT_1 + (components - 1); break; |