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)
{
*/
-#include "freedreno_util.h"
+#include "util/debug.h"
#include "ir3_nir.h"
#include "ir3_compiler.h"
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)