i965: Use prog->info.num_images for needs_dc computation
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 29 Sep 2017 02:03:38 +0000 (19:03 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Oct 2017 05:39:29 +0000 (22:39 -0700)
commit6ee4b352c90e93c82d900328716c1068a7188b91
tree2dc67b1a6a2d11b789c965a0809ef0131c34f5b9
parent2975e4c56a7aeade5a324aa4d446f18cc176fa06
i965: Use prog->info.num_images for needs_dc computation

This should be just as good as looking in prog_data but removes our one
state setup dependency on brw_stage_prog_data::nr_image_param.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_l3_state.c