From 06b9bc66d58dd6b2adf16142ca05875c953fcc5f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 20 Jan 2017 20:33:57 -0800 Subject: i965: Support the force_glsl_version driconf option. Gallium drivers have had this for a while. It makes sense to support it consistently across drivers, so expose it in i965 as well. Cc: "17.0" Signed-off-by: Kenneth Graunke Reviewed-by: Jordan Justen (cherry picked from commit 2f7a7ae13196c58eddea75fc51637f8c2a8579b0) --- src/mesa/drivers/dri/i965/brw_context.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_context.c') diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 84d34c0f6a0..f738199b75f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -910,6 +910,9 @@ brw_process_driconf_options(struct brw_context *brw) ctx->Const.ForceGLSLExtensionsWarn = driQueryOptionb(options, "force_glsl_extensions_warn"); + ctx->Const.ForceGLSLVersion = + driQueryOptioni(options, "force_glsl_version"); + ctx->Const.DisableGLSLLineContinuations = driQueryOptionb(options, "disable_glsl_line_continuations"); -- cgit v1.2.3