mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
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:
parent
c1e4c073cd
commit
252e55a1bb
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
u_printf_singleton_add(&info, 1);
|
||||
|
||||
b->shader->info.writes_memory = true;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue