i965/blorp: Refactor do_single_blorp_clear
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 May 2017 04:27:50 +0000 (21:27 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Jun 2017 05:18:53 +0000 (22:18 -0700)
commit076defba7a4a89972d34084fefa6227344280f77
tree37afa054489afeb64695a54d65a28e51fbf1013c
parent7a9c37eb7bf46853901a0fbd5701db19dc2b7fcd
i965/blorp: Refactor do_single_blorp_clear

Previously, we had two checks for can_fast_clear and a tiny bit of
shared code in between.  This commit pulls all of the fast clear code
together and duplicates the tiny bit that declares some surface structs
and calls blorp_surf_for_miptree.  The duplication is no real loss and
we're about to change the two in slightly different ways.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/brw_blorp.c