mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
intel/compiler: move validation assert after brw_shader_debug_log
When validation fails we print instructions to use INTEL_DEBUG=shaders but that will not help if we assert before dumping shader debug log. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40529>
This commit is contained in:
parent
8351c6070d
commit
c75256b2ab
1 changed files with 2 additions and 2 deletions
|
|
@ -1427,8 +1427,6 @@ brw_generator::generate_code(const brw_shader &s,
|
|||
"Validation failed. Rerun with INTEL_DEBUG=shaders to get more information.\n");
|
||||
}
|
||||
#endif
|
||||
assert(validated);
|
||||
|
||||
brw_shader_debug_log(compiler, params->log_data,
|
||||
"%s SIMD%d shader: %d inst, %d loops, %u cycles, "
|
||||
"%d:%d spills:fills, %u sends, "
|
||||
|
|
@ -1445,6 +1443,8 @@ brw_generator::generate_code(const brw_shader &s,
|
|||
shader_stats.scheduler_mode,
|
||||
shader_stats.promoted_constants,
|
||||
before_size, after_size);
|
||||
assert(validated);
|
||||
|
||||
if (stats) {
|
||||
stats->dispatch_width = dispatch_width;
|
||||
stats->max_polygons = s.max_polygons;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue