commit | f86bc873ffc23bb5d33c7acc1a5c0578abc5b30f | [log] [tgz] |
---|---|---|
author | Corentin Noël <corentin.noel@collabora.com> | Tue Mar 29 15:50:08 2022 +0200 |
committer | Marge Bot <emma+marge@anholt.net> | Wed Mar 30 04:19:14 2022 +0000 |
tree | 470c20a3acdab9debd8dab9b6e8764d26bf1a3f4 | |
parent | 6cfde0abe9a126c24cdd2af24e212c1da2d7ac99 [diff] |
nir_to_tgsi: Require the block index to always be populated In some cases like when using `NIR_DEBUG=serialize`, impl->num_blocks is 0 which leads to assertions error in the blocklist. Make sure to require the num_blocks to be populated. Fixes: 74c02d99b224fbc02132b54bf23e6ac1e117d805 Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15640>