radeonsi: enable nir option pack_varying_options
authorQiang Yu <yuq825@gmail.com>
Thu, 26 Aug 2021 06:32:32 +0000 (14:32 +0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Sep 2021 06:00:58 +0000 (06:00 +0000)
commitd33eeb2634b5869f5d435b590115a37fb66ae8ff
treef6235f8af077e4fb2682c01b3f4be2d9c8665a20
parent7054c1b7fd7b826e6a2577834b26b4d1ef4d34fc
radeonsi: enable nir option pack_varying_options

flat interpolation type is not enabled because we need to set
    SPI_PS_INPUT_CNTL_x.FLAT_SHADE=1
which is per vec4.

16 bit varying also need to set
    SPI_PS_INPUT_CNTL_x.FP16_INTERP_MODE
but varying packing only support 32 bit, so we don't need to
worry about this for now.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12537>
src/gallium/drivers/radeonsi/si_get.c