From 74ec39f66d506c78ee62a685b7fa055faa0991b9 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 2 Mar 2018 14:45:56 +0000 Subject: mesa: add INTEL_blackhole_render v2: Implement missing Enable/Disable (Emil) v3: Drop unused NewIntelBlackholeRender (Ken) v4: Bring back NewIntelBlackholeRender as i965 implementation uses it again (Lionel) v5: Drop atom (Ken) Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/mesa/main/enable.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mesa/main/enable.c') diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index e398a67fcb3..d13a298fb3c 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1266,6 +1266,15 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) ctx->Color.BlendCoherent = state; break; + case GL_BLACKHOLE_RENDER_INTEL: + if (!_mesa_has_INTEL_blackhole_render(ctx)) + goto invalid_enum_error; + if (ctx->IntelBlackholeRender == state) + return; + FLUSH_VERTICES(ctx, 0); + ctx->IntelBlackholeRender = state; + break; + default: goto invalid_enum_error; } @@ -1952,6 +1961,10 @@ _mesa_IsEnabled( GLenum cap ) goto invalid_enum_error; return ctx->TileRasterOrderIncreasingY; + case GL_BLACKHOLE_RENDER_INTEL: + CHECK_EXTENSION(INTEL_blackhole_render); + return ctx->IntelBlackholeRender; + default: goto invalid_enum_error; } -- cgit v1.2.3