i965: Refactor lossless compression state tracking
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 6 Jul 2016 09:29:41 +0000 (12:29 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 25 Nov 2016 14:57:06 +0000 (16:57 +0200)
commit71d48d6f42c3ae03b797c25d58f2f1f4dcd8fc29
tree78bb7fd742e2f64d432bc087ece8576fc19fe9a7
parentb27be186cb9001cd6a062f2179974ef95b273734
i965: Refactor lossless compression state tracking

Essentially this moves fast clear state update away from surface
state setup into brw_postdraw_set_buffers_need_resolve() that gets
called just after draw submission.
Calling intel_miptree_used_for_rendering() can be drop for gen6
and earlier as it is no-op.

v2: Rebased on top current master setting the state in
    blorp_surf_for_miptree().

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h