mesa: enable NV_texture_barrier in GLES2+ (again)
authorLucas Stach <dev@lynxeye.de>
Sat, 14 Oct 2023 15:50:33 +0000 (17:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 15 Oct 2023 10:33:47 +0000 (10:33 +0000)
commit04260c3654f79d395eadbab05f7c3e62837b9b0a
tree5a058f43d525cd6be73d33028d266c29bee5efb2
parent8b6b405a0131e20b1b54cc4e2246dc07d0e0b6fb
mesa: enable NV_texture_barrier in GLES2+ (again)

This re-enables NV_texture_barrier in GL ES2+ contexts. This had
previously been tried, but caused CI issues and thus had been
reverted.

c7da969f8fe1 ("mesa: Enable NV_texture_barrier in GLES2+") was
buggy, as it added the es2 annotation to the category instead of
the function in the XML, which lead to the extension being
advertised, but calling glTextureBarrierNV in a GLES context
only yielded a GL_INVALID_OPERATION instead of the desired
barrier operation.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25728>
src/mapi/glapi/gen/NV_texture_barrier.xml
src/mesa/main/extensions_table.h