i965: enable component packing for vs and fs

Graphics / Mesa 3D Graphics Library / Mesa - Timothy Arceri [collabora.com] - 20 July 2016 18:10 UTC

Rather than trying to work out the total number of components used at a location we simply treat all outputs as vec4s. This removes the need for complex code looping over varyings to match packed locations and the need for storing the total number of components used at each location.

7f53fea i965: enable component packing for vs and fs
src/mesa/drivers/dri/i965/brw_fs.h | 1 -
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 22 ++++++++++------------
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 10 ++--------
src/mesa/drivers/dri/i965/brw_nir.c | 8 ++++----
4 files changed, 16 insertions(+), 25 deletions(-)

Upstream: cgit.freedesktop.org


  • Share