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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user