summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/gen3_render.c3
-rw-r--r--src/sna/gen4_render.c3
-rw-r--r--src/sna/gen5_render.c3
-rw-r--r--src/sna/gen6_render.c3
-rw-r--r--src/sna/gen7_render.c3
-rw-r--r--src/sna/gen8_render.c3
6 files changed, 12 insertions, 6 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 322de02a..2d3fb1e9 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -5561,7 +5561,8 @@ gen3_render_video(struct sna *sna,
kgem_bo_destroy(&sna->kgem, dst_bo);
}
- sna_damage_add(&priv->gpu_damage, dstRegion);
+ if (!DAMAGE_IS_ALL(priv->gpu_damage))
+ sna_damage_add(&priv->gpu_damage, dstRegion);
return true;
}
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 6316f543..552da49a 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -1479,7 +1479,8 @@ gen4_render_video(struct sna *sna,
} while (nbox);
gen4_vertex_flush(sna);
- sna_damage_add(&priv->gpu_damage, dstRegion);
+ if (!DAMAGE_IS_ALL(priv->gpu_damage))
+ sna_damage_add(&priv->gpu_damage, dstRegion);
return true;
}
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index 2de30f52..e162f9fb 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -1422,7 +1422,8 @@ gen5_render_video(struct sna *sna,
}
gen4_vertex_flush(sna);
- sna_damage_add(&priv->gpu_damage, dstRegion);
+ if (!DAMAGE_IS_ALL(priv->gpu_damage))
+ sna_damage_add(&priv->gpu_damage, dstRegion);
return true;
}
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 23943aa9..ee175935 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -1713,7 +1713,8 @@ gen6_render_video(struct sna *sna,
}
gen4_vertex_flush(sna);
- sna_damage_add(&priv->gpu_damage, dstRegion);
+ if (!DAMAGE_IS_ALL(priv->gpu_damage))
+ sna_damage_add(&priv->gpu_damage, dstRegion);
return true;
}
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 6a38f688..1c420a7e 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -1942,7 +1942,8 @@ gen7_render_video(struct sna *sna,
}
gen4_vertex_flush(sna);
- sna_damage_add(&priv->gpu_damage, dstRegion);
+ if (!DAMAGE_IS_ALL(priv->gpu_damage))
+ sna_damage_add(&priv->gpu_damage, dstRegion);
return true;
}
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
index 2a40bd12..0631e0a3 100644
--- a/src/sna/gen8_render.c
+++ b/src/sna/gen8_render.c
@@ -3886,7 +3886,8 @@ gen8_render_video(struct sna *sna,
}
gen8_vertex_flush(sna);
- sna_damage_add(&priv->gpu_damage, dstRegion);
+ if (!DAMAGE_IS_ALL(priv->gpu_damage))
+ sna_damage_add(&priv->gpu_damage, dstRegion);
return true;
}