glsl: remove unused buffer objects with packed layout
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 4 May 2023 01:24:07 +0000 (11:24 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Jul 2023 01:21:06 +0000 (01:21 +0000)
commitcbff8f8c5c5e9a9712733105ff6d42c11a72271d
treebf805c80b3006c3afff90203af546abb99c28a67
parentfa56e911b8bf16529031814f6753fc052d2fb3c4
glsl: remove unused buffer objects with packed layout

These are currently removed by the GLSL IR DCE pass but we will
drop that in a following patch. Also there are scenarios where these
might not be detected as unused until the NIR optimisations have
been run so we really need to do it here too anyway.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22846>
src/compiler/glsl/gl_nir_linker.c