mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
nir: return progress from nir_lower_packing
Compiling with clang warns about an unused variable in nir_lower_packing. Tracking progress was added to nir_lower_packing inadb157ddfdbut the function will ignore the progress from impl calls and always return false. This patch changes it to return the progress. It fixes the warning and should enable validation calls in NIR_PASS when progress is made. Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Fixes:adb157ddfd"nir: Return progress from nir_lower_64bit_pack()" Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11615> (cherry picked from commited530ac6c2)
This commit is contained in:
parent
7739c338a4
commit
24e2a9a426
2 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@
|
|||
"description": "nir: return progress from nir_lower_packing",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "adb157ddfd52ab495878a8b2b1bf70586d773aa2"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -162,5 +162,5 @@ nir_lower_pack(nir_shader *shader)
|
|||
progress |= lower_pack_impl(function->impl);
|
||||
}
|
||||
|
||||
return false;
|
||||
return progress;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue