From: Jordan Justen Date: Tue, 28 Jul 2015 21:55:00 +0000 (-0700) Subject: i965: Lower shared variable references to intrinsic calls X-Git-Tag: upstream/17.1.0~13797 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3625d40714d73ef5dc888b944b66aa84fb5c114;p=platform%2Fupstream%2Fmesa.git i965: Lower shared variable references to intrinsic calls Signed-off-by: Jordan Justen Reviewed-by: Iago Toral Quiroga Reviewed-by: Kristian Høgsberg --- diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 5a6752b..7a6751b 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -138,6 +138,9 @@ brw_compiler_create(void *mem_ctx, const struct brw_device_info *devinfo) if (compiler->scalar_stage[MESA_SHADER_GEOMETRY]) compiler->glsl_compiler_options[MESA_SHADER_GEOMETRY].EmitNoIndirectInput = false; + compiler->glsl_compiler_options[MESA_SHADER_COMPUTE] + .LowerShaderSharedVariables = true; + return compiler; }