mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
vmware/saa: Disable the noreadback polyfillrect optimization
It causes rendering artefacts with some motif applications due to damage area confusion. Until that is sorted out, temporarily disable the optimization. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
This commit is contained in:
@@ -396,6 +396,7 @@ 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)
|
||||
@@ -476,7 +477,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)
|
||||
@@ -487,8 +488,17 @@ 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++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user