[Mesa-dev] [PATCH 3/3] mesa/st: use EmitNoIndirectSampler if !ARB_gpu_shader5
Marek Olšák
maraeo at gmail.com
Mon Jun 29 02:44:22 PDT 2015
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Mon, Jun 29, 2015 at 9:35 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> src/mesa/state_tracker/st_context.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
> index ed9ed0f..62a0fbe 100644
> --- a/src/mesa/state_tracker/st_context.c
> +++ b/src/mesa/state_tracker/st_context.c
> @@ -287,6 +287,11 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe,
> /* For vertex shaders, make sure not to emit saturate when SM 3.0 is not supported */
> ctx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].EmitNoSat = !st->has_shader_model3;
>
> + if (!ctx->Extensions.ARB_gpu_shader5) {
> + for (i = 0; i < MESA_SHADER_STAGES; i++)
> + ctx->Const.ShaderCompilerOptions[i].EmitNoIndirectSampler = true;
> + }
> +
> _mesa_compute_version(ctx);
>
> if (ctx->Version == 0) {
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list