mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-17 19:38:21 +02:00
i965/blorp: Don't clear an empty region
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
e4d6ffbbf6
commit
e0bc2cb145
1 changed files with 4 additions and 0 deletions
|
|
@ -591,6 +591,10 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,
|
|||
y1 = rb->Height - fb->_Ymin;
|
||||
}
|
||||
|
||||
/* If the clear region is empty, just return. */
|
||||
if (x0 == x1 || y0 == y1)
|
||||
return true;
|
||||
|
||||
bool can_fast_clear = !partial_clear;
|
||||
|
||||
bool color_write_disable[4] = { false, false, false, false };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue