commit | 0c77190b312a495b010302b3fe9a097ddf8a7b30 | [log] [tgz] |
---|---|---|
author | Marek Olšák <marek.olsak@amd.com> | Sat Dec 05 09:17:17 2020 -0500 |
committer | Marge Bot <eric+marge@anholt.net> | Thu Jan 21 21:59:29 2021 +0000 |
tree | dc65a70914e6bc264ef2679f21688d23903d536c | |
parent | e3a7acf9583444d426b9cbcc61cee34b4481b6ea [diff] |
glsl: split gl_CurrentAttribFragMESA into elements This reduces the constant buffer size by eliminating unused elements because it's no longer a uniform array that the compiler can't split. This looks silly, but there is no other way because all elements must be globally declared, which means they can't be generated by a loop. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8183>