[Mesa-dev] [PATCH] nir: extract out helper macros for running passes
Rob Clark
robdclark at gmail.com
Wed Dec 30 09:04:37 PST 2015
On Wed, Dec 30, 2015 at 10:32 AM, Rob Clark <robdclark at gmail.com> wrote:
> diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
> index e031173..a8bed70 100644
> --- a/src/mesa/drivers/dri/i965/brw_nir.c
> +++ b/src/mesa/drivers/dri/i965/brw_nir.c
> @@ -405,42 +405,8 @@ brw_nir_lower_uniforms(nir_shader *nir, bool is_scalar)
> }
> }
>
> -#include "util/debug.h"
> -
> -static bool
> -should_clone_nir()
> -{
> - static int should_clone = -1;
> - if (should_clone < 1)
btw, EdB pointed out on irc.. shouldn't this be if (should_clone < 0) ?
BR,
-R
> - should_clone = env_var_as_boolean("NIR_TEST_CLONE", false);
> -
> - return should_clone;
> -}
More information about the mesa-dev
mailing list