OSDN Git Service

glapi: fixup EXT_multisampled_render_to_texture dispatch
authorKristian H. Kristensen <hoegsberg@gmail.com>
Mon, 10 Dec 2018 18:14:34 +0000 (18:14 +0000)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Mon, 10 Dec 2018 23:09:07 +0000 (15:09 -0800)
commitc0de7c21a352dc5ea556df0397d0b34559bb89c2
treef5a29120dbcf752c7fc360c607fb5e93e9259518
parent9578dde1c8751fd5372bce0fce0a448259160650
glapi: fixup EXT_multisampled_render_to_texture dispatch

There's a few missing and convoluted bits:

 - FramebufferTexture2DMultisampleEXT
Missing sanity check, should be desktop="false"

 - RenderbufferStorageMultisampleEXT
Missing sanity check, is aliased to RenderbufferStorageMultisample.
Thus it's set only when desktop GL or GLES2 v3.0+, while the extension
is GLES2 2.0+.

If we flip the aliasing we'll break indirect GLX, so loosen the version
to 2.0. Not perfect, yet this is the most sane thing I could think of.

v2: [Emil] Fixup RenderbufferStorageMultisampleEXT, commmit message

Cc: Kristian H. Kristensen <hoegsberg@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108974
Fixes: 1b331ae505e ("mesa: Add core support for EXT_multisampled_render_to_texture{,2}")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/mapi/glapi/gen/ARB_framebuffer_object.xml
src/mapi/glapi/gen/EXT_multisampled_render_to_texture.xml
src/mapi/glapi/gen/es_EXT.xml
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/tests/dispatch_sanity.cpp