[Mesa-dev] [PATCH] nir: drop main/compiler.h from nir_lower_samplers*

Timothy Arceri tarceri at itsqueeze.com
Tue May 1 02:45:40 UTC 2018


Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

On 01/05/18 11:53, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> This include is no longer required.
> ---
>   src/compiler/nir/nir_lower_samplers.c          | 2 --
>   src/compiler/nir/nir_lower_samplers_as_deref.c | 2 --
>   2 files changed, 4 deletions(-)
> 
> diff --git a/src/compiler/nir/nir_lower_samplers.c b/src/compiler/nir/nir_lower_samplers.c
> index ed2e1be..fe35df5 100644
> --- a/src/compiler/nir/nir_lower_samplers.c
> +++ b/src/compiler/nir/nir_lower_samplers.c
> @@ -27,8 +27,6 @@
>   #include "nir_builder.h"
>   #include "compiler/glsl/ir_uniform.h"
>   
> -#include "main/compiler.h"
> -
>   /* Calculate the sampler index based on array indicies and also
>    * calculate the base uniform location for struct members.
>    */
> diff --git a/src/compiler/nir/nir_lower_samplers_as_deref.c b/src/compiler/nir/nir_lower_samplers_as_deref.c
> index 1f3fbbc..2f22196 100644
> --- a/src/compiler/nir/nir_lower_samplers_as_deref.c
> +++ b/src/compiler/nir/nir_lower_samplers_as_deref.c
> @@ -59,8 +59,6 @@
>   #include "nir_builder.h"
>   #include "compiler/glsl/ir_uniform.h"
>   
> -#include "main/compiler.h"
> -
>   struct lower_samplers_as_deref_state {
>      nir_shader *shader;
>      const struct gl_uniform_storage *uniform_storage;
> 


More information about the mesa-dev mailing list