diff options
author | Tapani Pälli <[email protected]> | 2015-06-24 13:22:43 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-06-30 11:12:44 +0300 |
commit | 8852e26e93af1fc4b72bf9d57e847f53e1a1371b (patch) | |
tree | d3e5190ff9ffa6866eb581aeb530e1a8b07bc4b4 /src/mesa | |
parent | e4512e1581cf90f56d13cfa6a809832ef3517283 (diff) |
i965: use EmitNoIndirectSampler for gen < 7
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Cc: "10.5" and "10.6" <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 32c40131434..3e3d78b9ad7 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -113,6 +113,10 @@ brw_compiler_create(void *mem_ctx, const struct brw_device_info *devinfo) (i == MESA_SHADER_FRAGMENT); compiler->glsl_compiler_options[i].EmitNoIndirectUniform = false; compiler->glsl_compiler_options[i].LowerClipDistance = true; + + /* !ARB_gpu_shader5 */ + if (devinfo->gen < 7) + compiler->glsl_compiler_options[i].EmitNoIndirectSampler = true; } compiler->glsl_compiler_options[MESA_SHADER_VERTEX].OptimizeForAOS = true; |