mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
mesa/get: allow NV_pixel_buffer_object constants in GLES2
The NV_pixel_buffer_object extension can be available in a GLES2 context, so the PIXEL_PACK_BUFFER_BINDING/PIXEL_UNPACK_BUFFER_BINDING constants should also be available. Tested on 8086:2e12, "Mesa DRI Intel(R) Q45/Q43 (ELK)". Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5655 Signed-off-by: Nicholas Bishop <nicholasbishop@google.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13862>
This commit is contained in:
parent
b8f41c5c4e
commit
37c3e16d35
1 changed files with 4 additions and 4 deletions
|
|
@ -387,6 +387,10 @@ descriptor=[
|
|||
|
||||
# GL_NV_alpha_to_coverage_dither_control
|
||||
[ "ALPHA_TO_COVERAGE_DITHER_MODE_NV", "CONTEXT_ENUM(Multisample.SampleAlphaToCoverageDitherControl ), NO_EXTRA" ],
|
||||
|
||||
# GL_EXT_pixel_buffer_object
|
||||
[ "PIXEL_PACK_BUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object" ],
|
||||
[ "PIXEL_UNPACK_BUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object" ],
|
||||
]},
|
||||
|
||||
# GLES3 is not a typo.
|
||||
|
|
@ -457,10 +461,6 @@ descriptor=[
|
|||
[ "MIN_PROGRAM_TEXEL_OFFSET", "CONTEXT_INT(Const.MinProgramTexelOffset), extra_GLSL_130_es3_gpushader4" ],
|
||||
[ "MAX_PROGRAM_TEXEL_OFFSET", "CONTEXT_INT(Const.MaxProgramTexelOffset), extra_GLSL_130_es3_gpushader4" ],
|
||||
|
||||
# GL_EXT_pixel_buffer_object
|
||||
[ "PIXEL_PACK_BUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object" ],
|
||||
[ "PIXEL_UNPACK_BUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object" ],
|
||||
|
||||
# GL_EXT_texture_array
|
||||
[ "TEXTURE_BINDING_2D_ARRAY", "LOC_CUSTOM, TYPE_INT, TEXTURE_2D_ARRAY_INDEX, extra_EXT_texture_array_es3" ],
|
||||
[ "MAX_ARRAY_TEXTURE_LAYERS_EXT", "CONTEXT_INT(Const.MaxArrayTextureLayers), extra_EXT_texture_array_es3" ],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue