diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-21 15:34:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-21 15:34:47 +0000 |
commit | 6172ff3e350dbfbcd122a911d7fa366ff5d268bc (patch) | |
tree | 39fb31811b03d5e2ad0c56a5b52b553ace2f2c3f | |
parent | b7a96df9b0872867c823dc945add5be04d51c30a (diff) |
sna: Always enable the solid-cache and gradient-cache
Figuring out when it might not be used is simply too error prone.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_gradient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_gradient.c b/src/sna/sna_gradient.c index db09e72d..237cf57b 100644 --- a/src/sna/sna_gradient.c +++ b/src/sna/sna_gradient.c @@ -428,7 +428,7 @@ bool sna_gradients_create(struct sna *sna) { DBG(("%s\n", __FUNCTION__)); - if (!can_render(sna)) + if (unlikely(sna->kgem.wedged)) return true; if (!sna_alpha_cache_init(sna)) |