summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-09-21 17:37:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-09-21 17:37:58 +0100
commit3e1be265cf950976b5929b14a9dad0664deaa2c1 (patch)
treeb7ee8c7866c5d701c0bdd503ee3aa928136891c8 /src/sna
parentb8967aff382c1b6bef2335dea51c979a3f0800c7 (diff)
sna: Force an inplace upload if already wedged
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/sna_io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index cdaadc01..60ea5171 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -587,6 +587,9 @@ static bool upload_inplace(struct kgem *kgem,
{
unsigned int bytes;
+ if (kgem->wedged)
+ return true;
+
if (!kgem_bo_can_map(kgem, bo) && !upload_inplace__tiled(kgem, bo))
return false;