diff options
author | Tapani Pälli <[email protected]> | 2015-06-29 09:48:52 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-06-30 11:12:44 +0300 |
commit | f17c8c287f3581fccb52714fbd4b2ea09a58e3d3 (patch) | |
tree | 560ef53ee5a5dcb21fa30d5ed840b94acab64f52 /src/mesa/state_tracker | |
parent | 2dc2b12ed15abb84c7e2b3c2726dcc1b735abcda (diff) |
mesa/st: use EmitNoIndirectSampler if !ARB_gpu_shader5
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Cc: "10.5" and "10.6" <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index ed9ed0f1b6c..62a0fbee3bb 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) { |