mesa: add an environment variable to default enable INTEL_blackhole

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7640>
This commit is contained in:
Lionel Landwerlin
2020-11-09 18:45:18 +02:00
committed by Marge Bot
parent f5610d9949
commit b039e03f55
2 changed files with 6 additions and 0 deletions

View File

@@ -885,6 +885,7 @@ init_attrib_groups(struct gl_context *ctx)
ctx->ErrorValue = GL_NO_ERROR;
ctx->ShareGroupReset = false;
ctx->varying_vp_inputs = VERT_BIT_ALL;
ctx->IntelBlackholeRender = env_var_as_boolean("INTEL_BLACKHOLE_DEFAULT", false);
return GL_TRUE;
}