Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nir: Use a single list for all shader variables | Jason Ekstrand | 2020-07-29 | 1 | -12/+16 |
| | | | | | | | | | | | | | | | | | Instead of having separate lists of variables, roughly sorted by mode, use a single list for all shader-level NIR variables. This makes a few list walks a bit longer here and there but list walks aren't a very common thing in NIR at all. On the other hand, it makes a lot of things like validation, printing, etc. way simpler. Also, there are a number of cases where we move variables from inputs/outputs to globals and this makes it way easier because we no longer have to move them between lists. We only have to deal with that if moving them from the shader to a nir_function_impl. Reviewed-by: Rob Clark <robdclark@chromium.org> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966> | ||||
* | nir/lower_variable_initializers: Restrict the modes we lower | Jason Ekstrand | 2020-07-29 | 1 | -0/+10 |
| | | | | | | | | This is not a functional change because these are the only modes we handle. All others get silently ignored. Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966> | ||||
* | nir: Call nir_metadata_preserve on !progress | Jason Ekstrand | 2020-06-11 | 1 | -3/+1 |
| | | | | | | Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171> | ||||
* | Rename nir_lower_constant_initializers to nir_lower_variable_initalizers | Arcady Goldmints-Orlov | 2020-02-12 | 1 | -0/+125 |
This is naming is more clear as nir_variables can be initializes not just with a nir_constant but with a pointer to another nir_variable. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3047> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3047> |