[Mesa-dev,10/12] i965: Enable ARB_fragment_shader_viewport for Gen7+ core.

Submitted by Chris Forbes on Jan. 25, 2014, 6:51 a.m.

Details

Message ID 1390632720-23391-11-git-send-email-chrisf@ijw.co.nz
State New
Headers show

Not browsing as part of any series.

Commit Message

Chris Forbes Jan. 25, 2014, 6:51 a.m.
This requires both GS and ARB_viewport_array, so we can only enable it
in core contexts for Gen7+ for now.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
---
 src/mesa/drivers/dri/i965/intel_extensions.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
index ab73434..3a779ff 100644
--- a/src/mesa/drivers/dri/i965/intel_extensions.c
+++ b/src/mesa/drivers/dri/i965/intel_extensions.c
@@ -298,8 +298,10 @@  intelInitExtensions(struct gl_context *ctx)
       /* Only enable this in core profile because other parts of Mesa behave
        * slightly differently when the extension is enabled.
        */
-      if (ctx->API == API_OPENGL_CORE)
+      if (ctx->API == API_OPENGL_CORE) {
          ctx->Extensions.ARB_viewport_array = true;
+         ctx->Extensions.ARB_fragment_layer_viewport = true;
+      }
    }
 
    if (brw->gen == 5 || can_write_oacontrol(brw))

Comments

Oops-- silly mistake in subject line. s/shader/layer/

On Sat, Jan 25, 2014 at 7:51 PM, Chris Forbes <chrisf@ijw.co.nz> wrote:
> This requires both GS and ARB_viewport_array, so we can only enable it
> in core contexts for Gen7+ for now.
>
> Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
> ---
>  src/mesa/drivers/dri/i965/intel_extensions.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
> index ab73434..3a779ff 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -298,8 +298,10 @@ intelInitExtensions(struct gl_context *ctx)
>        /* Only enable this in core profile because other parts of Mesa behave
>         * slightly differently when the extension is enabled.
>         */
> -      if (ctx->API == API_OPENGL_CORE)
> +      if (ctx->API == API_OPENGL_CORE) {
>           ctx->Extensions.ARB_viewport_array = true;
> +         ctx->Extensions.ARB_fragment_layer_viewport = true;
> +      }
>     }
>
>     if (brw->gen == 5 || can_write_oacontrol(brw))
> --
> 1.8.5.3
>