i965/sf_state: Pull flat_enables out of prog_data
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 Apr 2016 01:23:36 +0000 (18:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Apr 2016 01:08:56 +0000 (18:08 -0700)
commitc62db279b6bc4e820345f468c00d4fd65be8556b
tree1120e28b6e0a7edb81c4bd17dd5b499d7664793b
parente61cc87c757f8bc0b6a3af318a512b22c072595c
i965/sf_state: Pull flat_enables out of prog_data

Previously, we were walking over the shader source to figure out which
inputs should be marked flat.  Now, we can just pull it out of prog_data.
This is needed for properly setting up 3DSTATE_SF/SBE for Vulkan and it
also means that it will get properly cached.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c
src/mesa/drivers/dri/i965/gen8_sf_state.c