nir/printf-helpers: set writes_memory at printf emission

Those helpers can be called late (since it's mostly for debug
purposes). This can avoid surprises in the backend and also avoids
rerunning gather_info.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38995>
This commit is contained in:
Lionel Landwerlin 2025-12-16 17:25:29 +02:00 committed by Marge Bot
parent c1e4c073cd
commit 252e55a1bb

View file

@ -293,6 +293,8 @@ nir_vprintf_fmt(nir_builder *b, unsigned ptr_bit_size, const char *fmt, va_list
* cache while debugging compiler issues is a good practice anyway. * cache while debugging compiler issues is a good practice anyway.
*/ */
u_printf_singleton_add(&info, 1); u_printf_singleton_add(&info, 1);
b->shader->info.writes_memory = true;
} }
void void