intel/compiler: move validation assert after brw_shader_debug_log
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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:
Tapani Pälli 2026-03-20 10:40:06 +02:00 committed by Marge Bot
parent 8351c6070d
commit c75256b2ab

View file

@ -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;