summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-11-09 13:04:09 +0100
committerMarek Olšák <[email protected]>2016-11-10 18:34:55 +0100
commitf500c36339ee092b7b95cd2658d71d46ae7f28a8 (patch)
treed3285e18be2c3e8bf436b2e2e614b6d63d987e56 /src/mesa
parent0f6360eedb61ac184473f765eb26058593a679fc (diff)
mesa: remove LowerShaderSharedVariables
always true for compute shaders Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_compiler.c3
-rw-r--r--src/mesa/main/mtypes.h3
-rw-r--r--src/mesa/state_tracker/st_extensions.c3
3 files changed, 0 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_compiler.c b/src/mesa/drivers/dri/i965/brw_compiler.c
index 18145beb23a..9387d64b054 100644
--- a/src/mesa/drivers/dri/i965/brw_compiler.c
+++ b/src/mesa/drivers/dri/i965/brw_compiler.c
@@ -156,8 +156,5 @@ brw_compiler_create(void *mem_ctx, const struct gen_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;
}
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 08f72e0e41e..5e9804036c0 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2938,9 +2938,6 @@ struct gl_shader_compiler_options
/** Clamp UBO and SSBO block indices so they don't go out-of-bounds. */
GLboolean ClampBlockIndicesToArrayBounds;
- GLboolean LowerShaderSharedVariables; /**< Lower compute shader shared
- * variable access to intrinsics. */
-
const struct nir_shader_compiler_options *NirOptions;
};
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 8d3eee67654..ef926e47d74 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -308,9 +308,6 @@ void st_init_limits(struct pipe_screen *screen,
options->LowerCombinedClipCullDistance = true;
options->LowerBufferInterfaceBlocks = true;
-
- if (sh == PIPE_SHADER_COMPUTE)
- options->LowerShaderSharedVariables = true;
}
c->LowerTessLevel = true;