diff options
author | Jason Ekstrand <[email protected]> | 2018-10-18 15:18:30 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-26 11:45:29 -0500 |
commit | 28bb6abd1da83b26a9764598e39f80399b505b94 (patch) | |
tree | 848a7d456b8504dfb325abf8ed8b04de320762d0 /src/mesa/drivers | |
parent | 292ebdbf985f09e9af3dec28af784247510e0904 (diff) |
nir/validate: Print when the validation failed
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index f5ebd3c3b05..96247f32f0f 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -91,14 +91,15 @@ brw_create_nir(struct brw_context *brw, nir_remove_dead_variables(nir, nir_var_shader_in | nir_var_shader_out); nir_lower_returns(nir); - nir_validate_shader(nir); + nir_validate_shader(nir, "after glsl_to_nir or spirv_to_nir and " + "return lowering"); NIR_PASS_V(nir, nir_lower_io_to_temporaries, nir_shader_get_entrypoint(nir), true, false); } else { nir = prog_to_nir(prog, options); NIR_PASS_V(nir, nir_lower_regs_to_ssa); /* turn registers into SSA */ } - nir_validate_shader(nir); + nir_validate_shader(nir, "before brw_preprocess_nir"); nir = brw_preprocess_nir(brw->screen->compiler, nir); |