OSDN Git Service

i965: Enable fast clears on non-8x4-aligned sizes.
authorEric Anholt <eric@anholt.net>
Tue, 23 Apr 2013 20:58:31 +0000 (13:58 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 4 May 2013 03:59:51 +0000 (20:59 -0700)
commitcbf3462c35445e8728ec6d58ed264e16705c1254
tree0503f776f5cddfe87078933aa56681d36082cf8b
parent76084907fb720baf8894ca4c2d05b0e00dd7c12c
i965: Enable fast clears on non-8x4-aligned sizes.

Improves glb2.7 performance at a misaligned size by 2.3% +/- 0.7% (n=11).
The workaround was to avoid bad primitive/surface sizes, but that's worked
around as of a14dc4f92cdad6177d83f051a088a66e31a973bc.  (One might note
that pre-gen7 we don't know that the right half of an 8x4 at the right
edge is actually our pixels, but we're already clobbering those pixels for
depth resolves anyway and more work would be required to avoid that).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_clear.c