i965: Add buffer sizes to perf debug of fast clears
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 5 Jun 2015 05:05:13 +0000 (22:05 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 5 Jun 2015 21:25:47 +0000 (14:25 -0700)
commit77a44512d9ed56be5e53ebf09e917b5aeeba0189
treee6e9847c812bfbc3af5d657187e0ade0eecf6aa3
parent6acb61fc9c2c5f81569d17d90a480abc48ec6055
i965: Add buffer sizes to perf debug of fast clears

When we cannot do the optimized fast clear it's important to know the buffer
size since a small buffer will have much less performance impact.

A follow-on patch could restrict printing the message to only certain sizes.

Example:
Failed to fast clear 1400x1056 depth because of scissors.  Possible 5% performance win if avoided.

Recommended-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_clear.c
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c