summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-11-09 13:49:55 -0500
committerRob Clark <[email protected]>2018-11-27 15:44:02 -0500
commit2482153d52f0ff27513b63a5aebd688a74beb91a (patch)
treeab5d15f3cdcf3366214d9cd56d9850630d33a394 /src/gallium/drivers/freedreno/ir3
parenta321f939f648e25d7730507d7e60bb17c34d6e6e (diff)
freedreno/ir3: use env_var_as_unsigned()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
index 5e79522a82a..ca1173b2e7f 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
@@ -25,7 +25,7 @@
*/
-#include "freedreno_util.h"
+#include "util/debug.h"
#include "ir3_nir.h"
#include "ir3_compiler.h"
@@ -101,7 +101,7 @@ ir3_optimize_loop(nir_shader *s)
progress |= OPT(s, nir_opt_cse);
static int gcm = -1;
if (gcm == -1)
- gcm = env2u("GCM");
+ gcm = env_var_as_unsigned("GCM", 0);
if (gcm == 1)
progress |= OPT(s, nir_opt_gcm, true);
else if (gcm == 2)