summaryrefslogtreecommitdiff
path: root/src/intel_uxa.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-03 20:41:31 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-03 20:41:31 +0000
commit2174f840158aa9cfa370ade38be28f8dc8e4b526 (patch)
tree5bf8a4b76b68582a09eea7f330b86ea0639c3bce /src/intel_uxa.c
parenta1b40a20bbba4b70990a8983a2916d3d5850d828 (diff)
uxa: Remove caching of surface binding location
If the pixmap were to be used multiple times within a batch with mulitple formats, the cache would only return the initial location with the incorrect format and so cause rendering glitches. For instance, GTK+ uses the same pixmap as an xrgb source and as an argb mask in order to premultiply and composite in a single pass. Rather than introduce an overly complication caching (handle, format) mechanism, kiss and remove the invalid implementation. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40926 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_uxa.c')
-rw-r--r--src/intel_uxa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/intel_uxa.c b/src/intel_uxa.c
index 9e58c694..8c6f7546 100644
--- a/src/intel_uxa.c
+++ b/src/intel_uxa.c
@@ -636,7 +636,6 @@ void intel_set_pixmap_bo(PixmapPtr pixmap, dri_bo * bo)
if (priv->bo == bo)
return;
- priv->dst_bound = priv->src_bound = 0;
if (list_is_empty(&priv->batch)) {
dri_bo_unreference(priv->bo);
} else if (!drm_intel_bo_is_reusable(priv->bo)) {