[Mesa-dev] [PATCH 2/3] i915: use EmitNoIndirectSampler

Ian Romanick idr at freedesktop.org
Wed Sep 9 12:28:02 PDT 2015


Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 06/29/2015 12:35 AM, Tapani Pälli wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  src/mesa/drivers/dri/i915/i915_context.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c
> index 42ea54e..57b033c 100644
> --- a/src/mesa/drivers/dri/i915/i915_context.c
> +++ b/src/mesa/drivers/dri/i915/i915_context.c
> @@ -255,6 +255,8 @@ i915CreateContext(int api,
>      * FINISHME: vertex shaders?
>      */
>     ctx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].EmitCondCodes = true;
> +   ctx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].EmitNoIndirectSampler =
> +      true;
>  
>     struct gl_shader_compiler_options *const fs_options =
>        & ctx->Const.ShaderCompilerOptions[MESA_SHADER_FRAGMENT];
> @@ -266,6 +268,7 @@ i915CreateContext(int api,
>     fs_options->EmitNoIndirectOutput = true;
>     fs_options->EmitNoIndirectUniform = true;
>     fs_options->EmitNoIndirectTemp = true;
> +   fs_options->EmitNoIndirectSampler = true;
>  
>     ctx->Const.MaxDrawBuffers = 1;
>     ctx->Const.QueryCounterBits.SamplesPassed = 0;
> 



More information about the mesa-dev mailing list