always true for compute shaders
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
lower_ubo_reference(prog->_LinkedShaders[i],
options->ClampBlockIndicesToArrayBounds);
- if (options->LowerShaderSharedVariables)
+ if (i == MESA_SHADER_COMPUTE)
lower_shared_reference(prog->_LinkedShaders[i],
&prog->Comp.SharedSize);
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;
}
/** 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;
};
options->LowerCombinedClipCullDistance = true;
options->LowerBufferInterfaceBlocks = true;
-
- if (sh == PIPE_SHADER_COMPUTE)
- options->LowerShaderSharedVariables = true;
}
c->LowerTessLevel = true;