summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-08-10 19:37:01 +0200
committerMarek Olšák <[email protected]>2015-08-14 14:56:54 +0200
commit44dc1d307d7eacef0d6f1618ba0fb7f62e08f896 (patch)
treecd693d0ced6391a9271f048fe711dfd14ccbeced /src/mesa/state_tracker
parent78493c33183bf2a4b8be0e58963162ef2e3aa54a (diff)
gallium: add support for GLES texture float extensions (v3)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74329 v2: add a CAP for half floats drivers should not expose the CAPs if they don't support the formats v3: update relnotes Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 13d636fede0..ee14019c526 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -474,6 +474,8 @@ void st_init_extensions(struct pipe_screen *screen,
* support the GL_POINT_SPRITE_R_MODE_NV option. */
{ o(OES_standard_derivatives), PIPE_CAP_SM3 },
+ { o(OES_texture_float_linear), PIPE_CAP_TEXTURE_FLOAT_LINEAR },
+ { o(OES_texture_half_float_linear), PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR },
{ o(ARB_texture_cube_map_array), PIPE_CAP_CUBE_MAP_ARRAY },
{ o(ARB_texture_multisample), PIPE_CAP_TEXTURE_MULTISAMPLE },
{ o(ARB_texture_query_lod), PIPE_CAP_TEXTURE_QUERY_LOD },
@@ -492,6 +494,12 @@ void st_init_extensions(struct pipe_screen *screen,
{ PIPE_FORMAT_R32G32B32A32_FLOAT,
PIPE_FORMAT_R16G16B16A16_FLOAT } },
+ { { o(OES_texture_float) },
+ { PIPE_FORMAT_R32G32B32A32_FLOAT } },
+
+ { { o(OES_texture_half_float) },
+ { PIPE_FORMAT_R16G16B16A16_FLOAT } },
+
{ { o(ARB_texture_rgb10_a2ui) },
{ PIPE_FORMAT_R10G10B10A2_UINT,
PIPE_FORMAT_B10G10R10A2_UINT },