nir: Add comment to indicate that NIR_PASS_V is deprecated.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33609>
This commit is contained in:
Timur Kristóf
2025-02-18 17:26:03 +01:00
parent e34443205f
commit 4f744998ef

View File

@@ -4622,6 +4622,10 @@ should_print_nir(UNUSED nir_shader *shader)
} \
})
/**
* Deprecated. Please do not use in newly written code.
* See https://gitlab.freedesktop.org/mesa/mesa/-/issues/10409
*/
#define NIR_PASS_V(nir, pass, ...) _PASS(pass, nir, { \
if (should_print_nir(nir)) \
printf("%s\n", #pass); \