mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
i965: Add performance debug for fast clear fallbacks.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0e723b135b
commit
b4da272a6e
1 changed files with 9 additions and 1 deletions
|
|
@ -107,14 +107,22 @@ brw_fast_clear_depth(struct gl_context *ctx)
|
|||
* a previous clear had happened at a different clear value and resolve it
|
||||
* first.
|
||||
*/
|
||||
if (ctx->Scissor.Enabled)
|
||||
if (ctx->Scissor.Enabled) {
|
||||
perf_debug("Failed to fast clear depth due to scissor being enabled. "
|
||||
"Possible 5%% performance win if avoided.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
/* The rendered area has to be 8x4 samples, not resolved pixels, so we look
|
||||
* at the miptree slice dimensions instead of renderbuffer size.
|
||||
*/
|
||||
if (mt->level[depth_irb->mt_level].width % 8 != 0 ||
|
||||
mt->level[depth_irb->mt_level].height % 4 != 0) {
|
||||
perf_debug("Failed to fast clear depth due to width/height %d,%d not "
|
||||
"being aligned to 8,4. Possible 5%% performance win if "
|
||||
"avoided\n",
|
||||
mt->level[depth_irb->mt_level].width,
|
||||
mt->level[depth_irb->mt_level].height);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue