Re: [Mesa-dev] [PATCH 11/22] nir: Make image load/store intrinsics variable-width

2018-08-20 Thread Kenneth Graunke
On Friday, August 17, 2018 1:06:17 PM PDT Jason Ekstrand wrote: > Instead of requiring 4 components, this allows them to potentially use > fewer. Both the SPIR-V and GLSL paths still generate vec4 intrinsics so > drivers which assume 4 components should be safe. However, we want to > be able to

[Mesa-dev] [PATCH 11/22] nir: Make image load/store intrinsics variable-width

2018-08-17 Thread Jason Ekstrand
Instead of requiring 4 components, this allows them to potentially use fewer. Both the SPIR-V and GLSL paths still generate vec4 intrinsics so drivers which assume 4 components should be safe. However, we want to be able to shrink them for i965. --- src/compiler/glsl/glsl_to_nir.cpp | 9