mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
nir: use a _clone so users calling their variable clone don't get a warning
I've got code using clone name and it gets confused. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24687>
This commit is contained in:
parent
6417f1021a
commit
93bb08d1f7
1 changed files with 2 additions and 2 deletions
|
|
@ -4687,8 +4687,8 @@ should_print_nir(UNUSED nir_shader *shader)
|
|||
} \
|
||||
do_pass if (NIR_DEBUG(CLONE)) \
|
||||
{ \
|
||||
nir_shader *clone = nir_shader_clone(ralloc_parent(nir), nir); \
|
||||
nir_shader_replace(nir, clone); \
|
||||
nir_shader *_clone = nir_shader_clone(ralloc_parent(nir), nir);\
|
||||
nir_shader_replace(nir, _clone); \
|
||||
} \
|
||||
if (NIR_DEBUG(SERIALIZE)) { \
|
||||
nir_shader_serialize_deserialize(nir); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue