i965: Add aux_buf variable to simplify code.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 5 Mar 2018 19:25:12 +0000 (11:25 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Apr 2018 14:42:45 +0000 (07:42 -0700)
commit5449f942f20e7bd9379219532b3f7a29a55c0d55
tree048ac54a9cb0e5558600c231ec4c6bce21c08d66
parent8735c86ce08155a6cd07addbc848f148d0bc82a9
i965: Add aux_buf variable to simplify code.

In a follow up patch, we make use of clear_color_bo, which is in
mt->mcs_buf or mt->hiz_buf. To avoid duplicating more code that does the
same thing on both aux buffers, just use aux_buf already.

v5: Add aux_buf to brw_wm_surface_state too.
v6: Drop aux_surf and use aux_buf->surf instead (Jason).

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c