i965/clip: Make brw_clip_prog_key::interp_mode an array
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 20 Mar 2017 04:20:28 +0000 (21:20 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 May 2017 14:58:01 +0000 (07:58 -0700)
commitc30587643e34a1f7586adf961e4340bbce90b969
treecc1b2028d94663d426266be9cafd027a2eaccbee
parent58a57ea7d6cd2313989ee9c9759d4270b0bd675d
i965/clip: Make brw_clip_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_clip.c
src/mesa/drivers/dri/i965/brw_clip.h