i965/sf: make brw_sf_prog_key::interp_mode an array
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 20 Mar 2017 22:25:21 +0000 (15:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 May 2017 14:58:01 +0000 (07:58 -0700)
commit58a57ea7d6cd2313989ee9c9759d4270b0bd675d
tree773a27b91f0de070f42daabc2def0f5d2d063845
parent21ba2b4bef7c68fce492607b7dae5cd5e28b3bd9
i965/sf: make brw_sf_prog_key::interp_mode an array

Having it be a pointer means that we end up caching clip programs based
on a pointer to wm_prog_data rather than the actual interpolation modes.
We've been caching one clip program per FS ever since 91d61fbf7cb61a44a
where Timothy rewrote brw_setup_vue_interpolation().

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_sf.h