diff options
author | Kevin Strasser <[email protected]> | 2016-10-10 14:29:58 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-11-09 14:35:20 -0800 |
commit | 1d6fe13c138efb836a28052b16260a258d113827 (patch) | |
tree | 2552b90dafa1cce30e3746926c2960b004a49e91 /src/mesa/drivers/dri | |
parent | aeaf21ab3e6cb3e628ff0219461cbd06f3a99d34 (diff) |
mesa/extensions: expose OES_vertex_half_float for ES2
Half float support already exists for desktop GL. Reuse the
ARB_half_float_vertex enable bit and account for the different enum to
enable the extension for ES2.
Signed-off-by: Kevin Strasser <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index ab2fc505c79..b138cb7ef62 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -290,6 +290,7 @@ brw_get_vertex_surface_type(struct brw_context *brw, case GL_DOUBLE: return double_types(brw, size, glarray->Doubles); case GL_FLOAT: return float_types[size]; case GL_HALF_FLOAT: + case GL_HALF_FLOAT_OES: if (brw->gen < 6 && size == 3) return half_float_types[4]; else @@ -368,6 +369,7 @@ brw_get_vertex_surface_type(struct brw_context *brw, case GL_DOUBLE: return double_types(brw, size, glarray->Doubles); case GL_FLOAT: return float_types[size]; case GL_HALF_FLOAT: + case GL_HALF_FLOAT_OES: if (brw->gen < 6 && size == 3) return half_float_types[4]; else |