diff options
author | Marek Olšák <[email protected]> | 2011-04-26 02:28:33 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-04-29 11:31:55 +0200 |
commit | e62530a6c00da71c0f7bf1f4c425fe6c5b452df6 (patch) | |
tree | 8e6ba215cb7937df105ebf433495903ce2d408e1 /src/mesa/state_tracker/st_format.c | |
parent | 631d23daa91c569bf268a2191bd466df73a64263 (diff) |
st/mesa: support EXT_packed_float
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_format.c')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 91afab6594b..b1362108f0a 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -327,6 +327,8 @@ st_mesa_format_to_pipe_format(gl_format mesaFormat) case MESA_FORMAT_RGB9_E5_FLOAT: return PIPE_FORMAT_R9G9B9E5_FLOAT; + case MESA_FORMAT_R11_G11_B10_FLOAT: + return PIPE_FORMAT_R11G11B10_FLOAT; default: assert(0); @@ -550,6 +552,8 @@ st_pipe_format_to_mesa_format(enum pipe_format format) case PIPE_FORMAT_R9G9B9E5_FLOAT: return MESA_FORMAT_RGB9_E5_FLOAT; + case PIPE_FORMAT_R11G11B10_FLOAT: + return MESA_FORMAT_R11_G11_B10_FLOAT; default: assert(0); @@ -1496,6 +1500,13 @@ st_choose_format(struct pipe_screen *screen, GLenum internalFormat, } return PIPE_FORMAT_NONE; + case GL_R11F_G11F_B10F: + if (screen->is_format_supported(screen, PIPE_FORMAT_R11G11B10_FLOAT, target, + sample_count, bindings)) { + return PIPE_FORMAT_R11G11B10_FLOAT; + } + return PIPE_FORMAT_NONE; + default: return PIPE_FORMAT_NONE; } |