i965/miptree: Add new clear color BO for winsys aux buffers
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 1 Mar 2018 00:11:34 +0000 (16:11 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Apr 2018 14:42:45 +0000 (07:42 -0700)
commit8735c86ce08155a6cd07addbc848f148d0bc82a9
treea98ba90e9a6f13ad47ed66cd9faa1e3615d49851
parentab633c2d6108afc55c7c9f5436296832bdb18492
i965/miptree: Add new clear color BO for winsys aux buffers

Add an extra BO to store clear color when we receive the aux buffer from
the window system. Since we have no control over the aux buffer size in
this case, we need the new BO to store only the clear color.

v5:
 - Better subject (Jordan).
 - Drop alignment from brw_bo_alloc().

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