[Mesa-dev] [PATCH 13/14] i965: Advertise GLSL 1.40 and TexBOs in core contexts

Eric Anholt eric at anholt.net
Fri Aug 10 09:31:07 PDT 2012


Ian Romanick <idr at freedesktop.org> writes:

> On 08/08/2012 03:14 PM, Kenneth Graunke wrote:
>> On 08/08/2012 10:38 AM, Ian Romanick wrote:
>>> From: Ian Romanick <ian.d.romanick at intel.com>
>>>
>>> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
>>> ---
>>>   src/mesa/drivers/dri/intel/intel_extensions.c |   10 +++++++++-
>>>   1 files changed, 9 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
>>> index 76b56a2..10e664b 100755
>>> --- a/src/mesa/drivers/dri/intel/intel_extensions.c
>>> +++ b/src/mesa/drivers/dri/intel/intel_extensions.c
>>> @@ -93,7 +93,11 @@ intelInitExtensions(struct gl_context *ctx)
>>>      ctx->Extensions.OES_compressed_ETC1_RGB8_texture = true;
>>>
>>>      if (intel->gen >= 6)
>>> -      ctx->Const.GLSLVersion = 130;
>>> +      if (ctx->API == API_OPENGL_CORE) {
>>> +         ctx->Const.GLSLVersion = 140;
>>> +      } else {
>>> +         ctx->Const.GLSLVersion = 130;
>>> +      }
>>>      else
>>>         ctx->Const.GLSLVersion = 120;
>>>      _mesa_override_glsl_version(ctx);
>>> @@ -106,6 +110,10 @@ intelInitExtensions(struct gl_context *ctx)
>>>         ctx->Extensions.ARB_blend_func_extended = !driQueryOptionb(&intel->optionCache, "disable_blend_func_extended");
>>>         ctx->Extensions.ARB_draw_buffers_blend = true;
>>>         ctx->Extensions.ARB_uniform_buffer_object = true;
>>> +
>>> +      if (ctx->API == API_OPENGL_CORE) {
>>> +         ctx->Extensions.ARB_texture_buffer_object = true;
>>> +      }
>>
>> As it stands, this would begin advertising the ARB_texture_buffer_object
>> extension on 3.1.  I don't think we want to do that, since the extension
>> specs luminance/alpha bits, and we don't support those.
>
> It can't advertise those on 3.1 because the don't exist at all.

So, similarly EXT_texture_integer that introduces LUMINANCE_ALPHA8I_EXT
would not imply LUMINANCE_ALPHA8I_EXT support in a core 3.1 context
because all LA is gone?  Or is it just specs that don't explicitly make
a new enum?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120810/64d9eeae/attachment.pgp>


More information about the mesa-dev mailing list