[Mesa-dev] [PATCH 8/9] i965: enable ARB_framebuffer_no_attachments extension for Gen7 and later

Ian Romanick idr at freedesktop.org
Tue May 5 23:55:51 PDT 2015


On 04/29/2015 01:56 AM, kevin.rogovin at intel.com wrote:
> From: Kevin Rogovin <kevin.rogovin at intel.com>
> 
> Enable GL_ARB_framebuffer_no_attachments in i965 for Gen7 and higher.
> 
> ---
>  src/mesa/drivers/dri/i965/brw_context.c      | 6 ++++++
>  src/mesa/drivers/dri/i965/intel_extensions.c | 1 +
>  2 files changed, 7 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index 9d90360..5c9577f 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -608,6 +608,12 @@ brw_initialize_context_constants(struct brw_context *brw)
>     /* ARB_gpu_shader5 */
>     if (brw->gen >= 7)
>        ctx->Const.MaxVertexStreams = MIN2(4, MAX_VERTEX_STREAMS);
> +
> +   /* ARB_framebuffer_no_attachments */
> +   ctx->Const.MaxFramebufferWidth = ctx->Const.MaxViewportWidth;
> +   ctx->Const.MaxFramebufferHeight = ctx->Const.MaxViewportHeight;
> +   ctx->Const.MaxFramebufferLayers = ctx->Const.MaxArrayTextureLayers;
> +   ctx->Const.MaxFramebufferSamples = max_samples;
>  }
>  
>  /**
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
> index 48064e1..65cf2bb 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -304,6 +304,7 @@ intelInitExtensions(struct gl_context *ctx)
>     if (brw->gen >= 7) {
>        ctx->Extensions.ARB_conservative_depth = true;
>        ctx->Extensions.ARB_texture_view = true;
> +      ctx->Extensions.ARB_framebuffer_no_attachments = true;

Alphabetize.

With that fixed, this patch is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

>        if (can_do_pipelined_register_writes(brw)) {
>           ctx->Extensions.ARB_transform_feedback2 = true;
>           ctx->Extensions.ARB_transform_feedback3 = true;
> 



More information about the mesa-dev mailing list