mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
mesa/es3.1: enable DRAW_INDIRECT_BUFFER_BINDING for gles3.1
(increases ES31-CTS.draw_indirect.basic.* passing tests) v2: only expose DRAW_INDIRECT_BUFFER_BINDING for GL core + ES3.1 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
56e9f3b493
commit
83624c141d
2 changed files with 18 additions and 2 deletions
|
|
@ -138,6 +138,7 @@ enum value_extra {
|
|||
EXTRA_API_GL_CORE,
|
||||
EXTRA_API_ES2,
|
||||
EXTRA_API_ES3,
|
||||
EXTRA_API_ES31,
|
||||
EXTRA_NEW_BUFFERS,
|
||||
EXTRA_NEW_FRAG_CLAMP,
|
||||
EXTRA_VALID_DRAW_BUFFER,
|
||||
|
|
@ -348,6 +349,12 @@ static const int extra_ARB_shader_image_load_store_and_geometry_shader[] = {
|
|||
EXTRA_END
|
||||
};
|
||||
|
||||
static const int extra_ARB_draw_indirect_es31[] = {
|
||||
EXT(ARB_draw_indirect),
|
||||
EXTRA_API_ES31,
|
||||
EXTRA_END
|
||||
};
|
||||
|
||||
EXTRA_EXT(ARB_texture_cube_map);
|
||||
EXTRA_EXT(EXT_texture_array);
|
||||
EXTRA_EXT(NV_fog_distance);
|
||||
|
|
@ -1078,6 +1085,11 @@ check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d
|
|||
if (_mesa_is_gles3(ctx))
|
||||
api_found = GL_TRUE;
|
||||
break;
|
||||
case EXTRA_API_ES31:
|
||||
api_check = GL_TRUE;
|
||||
if (_mesa_is_gles31(ctx))
|
||||
api_found = GL_TRUE;
|
||||
break;
|
||||
case EXTRA_API_GL:
|
||||
api_check = GL_TRUE;
|
||||
if (_mesa_is_desktop_gl(ctx))
|
||||
|
|
|
|||
|
|
@ -409,6 +409,12 @@ descriptor=[
|
|||
[ "SAMPLER_BINDING", "LOC_CUSTOM, TYPE_INT, GL_SAMPLER_BINDING, NO_EXTRA" ],
|
||||
]},
|
||||
|
||||
# Enums in OpenGL Core profile and ES 3.1
|
||||
{ "apis": ["GL_CORE", "GLES3"], "params": [
|
||||
# GL_ARB_draw_indirect / GLES 3.1
|
||||
[ "DRAW_INDIRECT_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_draw_indirect_es31" ],
|
||||
]},
|
||||
|
||||
# Remaining enums are only in OpenGL
|
||||
{ "apis": ["GL", "GL_CORE"], "params": [
|
||||
[ "ACCUM_RED_BITS", "BUFFER_INT(Visual.accumRedBits), NO_EXTRA" ],
|
||||
|
|
@ -804,8 +810,6 @@ descriptor=[
|
|||
{ "apis": ["GL_CORE"], "params": [
|
||||
# GL_ARB_texture_buffer_range
|
||||
[ "TEXTURE_BUFFER_OFFSET_ALIGNMENT", "CONTEXT_INT(Const.TextureBufferOffsetAlignment), extra_ARB_texture_buffer_range" ],
|
||||
# GL_ARB_draw_indirect
|
||||
[ "DRAW_INDIRECT_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_draw_indirect" ],
|
||||
|
||||
# GL_ARB_viewport_array
|
||||
[ "MAX_VIEWPORTS", "CONTEXT_INT(Const.MaxViewports), extra_ARB_viewport_array" ],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue