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

v3dv/debug: use gl stage when checking debug flag


Reviewed-by: Iago Toral's avatarIago Toral Quiroga <itoral@igalia.com>
Part-of: <!10229>
parent 98698c4d
Pipeline #302101 waiting for manual action with stages
...@@ -473,7 +473,8 @@ shader_module_compile_to_nir(struct v3dv_device *device, ...@@ -473,7 +473,8 @@ shader_module_compile_to_nir(struct v3dv_device *device,
assert(nir->info.stage == broadcom_shader_stage_to_gl(stage->stage)); assert(nir->info.stage == broadcom_shader_stage_to_gl(stage->stage));
if (V3D_DEBUG & (V3D_DEBUG_NIR | if (V3D_DEBUG & (V3D_DEBUG_NIR |
v3d_debug_flag_for_shader_stage(stage->stage))) { v3d_debug_flag_for_shader_stage(
broadcom_shader_stage_to_gl(stage->stage)))) {
fprintf(stderr, "Initial form: %s prog %d NIR:\n", fprintf(stderr, "Initial form: %s prog %d NIR:\n",
broadcom_shader_stage_name(stage->stage), broadcom_shader_stage_name(stage->stage),
stage->program_id); stage->program_id);
...@@ -1454,7 +1455,8 @@ pipeline_compile_shader_variant(struct v3dv_pipeline_stage *p_stage, ...@@ -1454,7 +1455,8 @@ pipeline_compile_shader_variant(struct v3dv_pipeline_stage *p_stage,
const struct v3d_compiler *compiler = physical_device->compiler; const struct v3d_compiler *compiler = physical_device->compiler;
if (V3D_DEBUG & (V3D_DEBUG_NIR | if (V3D_DEBUG & (V3D_DEBUG_NIR |
v3d_debug_flag_for_shader_stage(p_stage->stage))) { v3d_debug_flag_for_shader_stage
(broadcom_shader_stage_to_gl(p_stage->stage)))) {
fprintf(stderr, "Just before v3d_compile: %s prog %d NIR:\n", fprintf(stderr, "Just before v3d_compile: %s prog %d NIR:\n",
broadcom_shader_stage_name(p_stage->stage), broadcom_shader_stage_name(p_stage->stage),
p_stage->program_id); p_stage->program_id);
......
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