summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-11-09 10:50:48 -0500
committerRob Clark <[email protected]>2018-11-27 15:44:02 -0500
commit8a654f092eaa6a6435e26668ea7fb0bc2a5de99c (patch)
tree61ab79c3718e52121a4e539d2d0d0af8d1eab676 /src/gallium/drivers/freedreno/ir3
parentc635703c500928c069023cf1b7371f1ac3124651 (diff)
freedreno: remove shader_stage_name()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c2
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_shader.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
index abdff85874f..a75c6c3a6df 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
@@ -190,7 +190,7 @@ compile_init(struct ir3_compiler *compiler,
if (shader_debug_enabled(so->type)) {
fprintf(stderr, "NIR (final form) for %s shader:\n",
- shader_stage_name(so->type));
+ _mesa_shader_stage_to_string(so->type));
nir_print_shader(ctx->s, stderr);
}
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_shader.c b/src/gallium/drivers/freedreno/ir3/ir3_shader.c
index 797d75e3155..c13c47ce499 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_shader.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_shader.c
@@ -152,7 +152,8 @@ assemble_variant(struct ir3_shader_variant *v)
if (shader_debug_enabled(v->shader->type)) {
fprintf(stderr, "Native code for unnamed %s shader %s:\n",
- shader_stage_name(v->shader->type), v->shader->nir->info.name);
+ _mesa_shader_stage_to_string(v->shader->type),
+ v->shader->nir->info.name);
if (v->shader->type == MESA_SHADER_FRAGMENT)
fprintf(stderr, "SIMD0\n");
ir3_shader_disasm(v, bin, stderr);