summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2014-09-15 15:13:53 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2014-09-23 18:15:11 +0200
commitf86434ac69bd288c7fba65d178c22a91a0f4f6c2 (patch)
tree409463cb59c87e3ad5641669cb22726322f1c4d5
parent8545a166931617af0d2a9ca8175fd8b11c67e246 (diff)
Revert "vmware/saa: Disable the noreadback polyfillrect optimization"
This reverts commit 88c487cb19aaf2882d582f7f887a52935ef8d92e. While the commit made the rendering artefacts less frequent, they didn't disappear completely and are likely caused by something else, so revert this commit. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Acked-by: Sinclair Yeh <syeh@vmware.com>
-rw-r--r--saa/saa_unaccel.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/saa/saa_unaccel.c b/saa/saa_unaccel.c
index deaeb8b..e2bf3ac 100644
--- a/saa/saa_unaccel.c
+++ b/saa/saa_unaccel.c
@@ -396,7 +396,6 @@ saa_check_poly_arc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc * pArcs)
* region fragmentation. In any case, this greatly improves on the performance of
* shaped windows on top of accelerated contents, for example unscaled OSD in xine.
*/
-#if 0
static Bool
saa_check_poly_fill_rect_noreadback(DrawablePtr pDrawable, GCPtr pGC,
int nrect, xRectangle *prect)
@@ -477,7 +476,7 @@ saa_check_poly_fill_rect_noreadback(DrawablePtr pDrawable, GCPtr pGC,
return FALSE;
}
-#endif
+
void
saa_check_poly_fill_rect(DrawablePtr pDrawable, GCPtr pGC,
int nrect, xRectangle * prect)
@@ -488,17 +487,8 @@ saa_check_poly_fill_rect(DrawablePtr pDrawable, GCPtr pGC,
SAA_FALLBACK(("to %p (%c)\n", pDrawable, saa_drawable_loc(pDrawable)));
-
- /*
- * Disable saa_check_poly_fill_rect_noreadback as it causes rendering
- * artefacts with some motif applications. There seems to be some
- * confusion with the damage area.
- */
-
-#if 0
if (saa_check_poly_fill_rect_noreadback(pDrawable, pGC, nrect, prect))
return;
-#endif
sscreen->fallback_count++;