diff options
author | Jason Ekstrand <[email protected]> | 2016-08-08 12:10:26 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-19 03:11:29 -0700 |
commit | e0bc2cb145667f9b0fb1ea1ff8f287191e98765a (patch) | |
tree | 23b51254851a242ba11add57f48ad4cfa78df4fc /src | |
parent | e4d6ffbbf68682523237faf15915a64e237317cb (diff) |
i965/blorp: Don't clear an empty region
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 8650cc41be2..f4c2740f6c1 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -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 }; |