summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-06-28 19:16:58 -0700
committerJason Ekstrand <[email protected]>2018-07-02 12:09:45 -0700
commit1235850522cd5e7b07701f7065996430ca1514b6 (patch)
treea9a412e5dd7bf31ef9f8a1df6ae423a05fbd2b3a /src/gallium
parentc90f221e0a1f89332189dd5ec79dccf6b251ecf5 (diff)
nir: Add a large constants optimization pass
This pass searches for reasonably large local variables which can be statically proven to be constant and moves them into shader constant data. This is especially useful when large tables are baked into the shader source code because they can be moved into a UBO by the driver to reduce register pressure and make indirect access cheaper. v2 (Jason Ekstrand): - Use a size/align function to ensure we get the right alignments - Use the newly added deref offset helpers Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions