i965: enable component packing for vs and fs
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 23 May 2016 06:48:05 +0000 (16:48 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 20 Jul 2016 23:10:53 +0000 (09:10 +1000)
commit7f53fead5cf9a85c74a94d359dd5fccfbb87856c
treed79507872d60b30595030c7828120d819020a7a4
parent09e46f99ad465ab253de3fc321f39062cfbe1984
i965: enable component packing for vs and fs

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.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_nir.c