[Mesa-dev] [PATCH 10/12] i965: Enable ARB_fragment_shader_viewport for Gen7+ core.
Chris Forbes
chrisf at ijw.co.nz
Fri Jan 24 22:51:58 PST 2014
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 at 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
More information about the mesa-dev
mailing list