i915: Make I915_DEBUG=fs log shaders that fail to link due to CF.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24763>
This commit is contained in:
Emma Anholt
2023-08-17 11:50:50 -07:00
committed by Marge Bot
parent 9a8956bb77
commit 2c4d5c6aec
+6 -1
View File
@@ -281,8 +281,13 @@ i915_finalize_nir(struct pipe_screen *pscreen, void *nir)
nir_sweep(s);
char *msg = i915_check_control_flow(s);
if (msg)
if (msg) {
if (I915_DBG_ON(DBG_FS) && (!s->info.internal || NIR_DEBUG(PRINT_INTERNAL))) {
mesa_logi("failing shader:");
nir_log_shaderi(s);
}
return strdup(msg);
}
if (s->info.stage == MESA_SHADER_FRAGMENT)
return i915_test_fragment_shader_compile(pscreen, s);