i965: Stop using wm_prog_data->binding_table.render_target_start.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Aug 2017 19:09:41 +0000 (12:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Aug 2017 18:55:17 +0000 (11:55 -0700)
commit4ffa9f3635b6584d67076f506926f13d6cce4030
treef33acb69cf2d5534f25baff637be1f83c18490be
parent274afad4cd3c45585a19be48f63507c181647416
i965: Stop using wm_prog_data->binding_table.render_target_start.

Render target surfaces always start at binding table index 0.
This is required for us to use headerless FB writes, which we
really want to do.  So, we'll never change that.

Given that, it's not necessary to look up a wm_prog_data field
which we already know contains 0.  We can drop the dependency in
brw_renderbuffer_surfaces (Gen4-5)...which was already confusingly
missing from gen6_renderbuffer_surfaces.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/compiler/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_wm_surface_state.c