[Mesa-dev] [PATCH 1/2] mesa: GL_EXT_texture_norm16 extension plumbing

Ilia Mirkin imirkin at alum.mit.edu
Tue Apr 17 12:19:17 UTC 2018


On Mon, Apr 16, 2018 at 11:22 PM, Tapani Pälli <tapani.palli at intel.com> wrote:
> On 17.04.2018 02:42, Ilia Mirkin wrote:
> > differentiating the case "have NV_image_formats but not
> > EXT_texture_norm16"?
>
> I had a version that added another boolean but since both of these
> extensions require GL ES 3.1 it seemed to me that it would be unlikely to
> have platform to support 3.1 but not EXT_texture_norm16 (?)

Then why are there separate enables for this and NV_image_formats in
the gl_extensions object?

Note that doing this properly here is a bit tricky -- it's not like
one would do "#extension GL_EXT_texture_norm16: enable". So you'd have
to check in the GL context for whether it's enabled somehow.

[As an aside, any impl that supports ARB_shader_image_load_store will
support all of this. I don't know what the practical restrictions are
on ES hardware -- Adreno does norm16 just fine, but others might not?]

  -ilia


More information about the mesa-dev mailing list