summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_util.h
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/freedreno_util.h
parenta321f939f648e25d7730507d7e60bb17c34d6e6e (diff)
freedreno/ir3: use env_var_as_unsigned()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_util.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_util.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h
index 0017ac5a397..e03f37dd627 100644
--- a/src/gallium/drivers/freedreno/freedreno_util.h
+++ b/src/gallium/drivers/freedreno/freedreno_util.h
@@ -411,18 +411,6 @@ emit_marker(struct fd_ringbuffer *ring, int scratch_idx)
OUT_RING(ring, ++marker_cnt);
}
-/* helper to get numeric value from environment variable.. mostly
- * just leaving this here because it is helpful to brute-force figure
- * out unknown formats, etc, which blob driver does not support:
- */
-static inline uint32_t env2u(const char *envvar)
-{
- char *str = getenv(envvar);
- if (str)
- return strtoul(str, NULL, 0);
- return 0;
-}
-
static inline uint32_t
pack_rgba(enum pipe_format format, const float *rgba)
{