summaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-10-18 17:59:47 -0700
committerJason Ekstrand <[email protected]>2017-12-05 22:01:54 -0800
commitae54a4f84fb6b440d7a8a57651965a4d9eed725b (patch)
tree21568b592882609868b00555e8d4014c1417075a /src/broadcom
parentf6eb5ce39cb80f321fedd76d41c638e3d98e03b3 (diff)
spirv: Add support for lowering workgroup access to offsets
Before, we always left workgroup variables as shared nir_variables and let the driver call nir_lower_io. This adds an option to do the lowering directly in spirv_to_nir. To do this, we implicitly assign the variables a std430 layout and then treat them like a UBO or SSBO and immediately lower all the way to an offset. As a side-effect, the spirv_to_nir pass now handles variable pointers for workgroup variables. Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/broadcom')
0 files changed, 0 insertions, 0 deletions