diff options
author | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2013-12-26 19:06:25 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-01-27 16:40:43 +0100 |
commit | 3efed4cd050e448ec168e2c0c27068a1f5a6c20c (patch) | |
tree | 9d6eea03d7a1823b9bfcafc435cb5a6731a3b799 /src/mesa/state_tracker | |
parent | c7b14ba23f3f92ed941484d929a9b799efb9e925 (diff) | |
download | external_mesa3d-3efed4cd050e448ec168e2c0c27068a1f5a6c20c.zip external_mesa3d-3efed4cd050e448ec168e2c0c27068a1f5a6c20c.tar.gz external_mesa3d-3efed4cd050e448ec168e2c0c27068a1f5a6c20c.tar.bz2 |
mesa/st: expose ARB_texture_rgb10_a2ui if R10G10B10A2_UINT is supported v2
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 4 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index e7d5d74..4ef7b28 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -419,7 +419,9 @@ void st_init_extensions(struct st_context *st) PIPE_FORMAT_R16G16B16A16_FLOAT } }, { { o(ARB_texture_rgb10_a2ui) }, - { PIPE_FORMAT_B10G10R10A2_UINT } }, + { PIPE_FORMAT_R10G10B10A2_UINT, + PIPE_FORMAT_B10G10R10A2_UINT }, + GL_TRUE }, /* at least one format must be supported */ { { o(EXT_framebuffer_sRGB) }, { PIPE_FORMAT_A8B8G8R8_SRGB, diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index b0158f3..50d7880 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -359,6 +359,8 @@ st_mesa_format_to_pipe_format(gl_format mesaFormat) return PIPE_FORMAT_R11G11B10_FLOAT; case MESA_FORMAT_ARGB2101010_UINT: return PIPE_FORMAT_B10G10R10A2_UINT; + case MESA_FORMAT_ABGR2101010_UINT: + return PIPE_FORMAT_R10G10B10A2_UINT; case MESA_FORMAT_XRGB4444_UNORM: return PIPE_FORMAT_B4G4R4X4_UNORM; @@ -712,6 +714,8 @@ st_pipe_format_to_mesa_format(enum pipe_format format) case PIPE_FORMAT_B10G10R10A2_UINT: return MESA_FORMAT_ARGB2101010_UINT; + case PIPE_FORMAT_R10G10B10A2_UINT: + return MESA_FORMAT_ABGR2101010_UINT; case PIPE_FORMAT_B4G4R4X4_UNORM: return MESA_FORMAT_XRGB4444_UNORM; @@ -1483,7 +1487,7 @@ static const struct format_mapping format_map[] = { }, { { GL_RGB10_A2UI, 0 }, - { PIPE_FORMAT_B10G10R10A2_UINT, 0 } + { PIPE_FORMAT_R10G10B10A2_UINT, PIPE_FORMAT_B10G10R10A2_UINT, 0 } }, }; |