<div dir="ltr"><div dir="ltr"><div>New MR: <a href="https://gitlab.freedesktop.org/mesa/mesa/merge_requests/17">https://gitlab.freedesktop.org/mesa/mesa/merge_requests/17</a><br></div><div dir="ltr"><br></div><div dir="ltr">This MR begins the process of being able to optimize external memory access by first moving us over to using deref instructions for UBO/SSBO access.<br><br>Many of the patches are cleanups or fairly small refactors of NIR or SPIR-V. More notable changes include:<br><br>    Reworking some NIR variable modes to properly distinguish between UBOs and other uniforms<br>    Adding support to glsl_type for explicit strides/offsets on types.<br>    Adding a new ptr-as-array deref type to NIR<br>    Adding a new nir_opt_deref pass to optimize ptr-as-array derefs<br>    Relaxing several NIR validation rules<br>    Adding support for cast derefs to a couple of passes<br>    Adding UBO/SSBO deref support to spirv_to_nir but hidden behind a flag<br>    Enabling the new path in ANV.<br><br>All in all, I think I finally have a version of this that I'm actually happy with. It took several iterations to figure out how I wanted to best describe the type information coming out of SPIR-V. The glsl_type modifications ended up being not nearly as bad as I expected so I went that route.</div><div dir="ltr"><br></div><div>Happy reviewing!</div><div><br></div><div>--Jason<br></div></div></div>