Commit 98698c4d authored by Alejandro Piñeiro's avatar Alejandro Piñeiro Committed by Marge Bot
Browse files

v3dv/debug: print correct stage name


Reviewed-by: Iago Toral's avatarIago Toral Quiroga <itoral@igalia.com>
Part-of: <!10229>
parent 6d510fd4
......@@ -475,7 +475,7 @@ shader_module_compile_to_nir(struct v3dv_device *device,
if (V3D_DEBUG & (V3D_DEBUG_NIR |
v3d_debug_flag_for_shader_stage(stage->stage))) {
fprintf(stderr, "Initial form: %s prog %d NIR:\n",
gl_shader_stage_name(stage->stage),
broadcom_shader_stage_name(stage->stage),
stage->program_id);
nir_print_shader(nir, stderr);
fprintf(stderr, "\n");
......@@ -1456,7 +1456,7 @@ pipeline_compile_shader_variant(struct v3dv_pipeline_stage *p_stage,
if (V3D_DEBUG & (V3D_DEBUG_NIR |
v3d_debug_flag_for_shader_stage(p_stage->stage))) {
fprintf(stderr, "Just before v3d_compile: %s prog %d NIR:\n",
gl_shader_stage_name(p_stage->stage),
broadcom_shader_stage_name(p_stage->stage),
p_stage->program_id);
nir_print_shader(p_stage->nir, stderr);
fprintf(stderr, "\n");
......
......@@ -326,6 +326,17 @@ broadcom_shader_stage_to_gl(broadcom_shader_stage stage)
}
}
static inline const char *
broadcom_shader_stage_name(broadcom_shader_stage stage)
{
switch(stage) {
case BROADCOM_SHADER_VERTEX_BIN:
return "MESA_SHADER_VERTEX_BIN";
default:
return gl_shader_stage_name(broadcom_shader_stage_to_gl(stage));
}
}
struct v3dv_pipeline_cache {
struct vk_object_base base;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment