summaryrefslogtreecommitdiff
path: root/src/sna/sna_render_inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-17 21:38:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-17 22:33:28 +0100
commit7bcd1d2b75d280cecfc23877bb13426a28c07a1f (patch)
treeecbecf9cbdb421b07323e80e7423a2f76a3409d2 /src/sna/sna_render_inline.h
parenta5b5b4ebb14cab19258dd1cbc12721aaa9df226d (diff)
sna: perform a warnings reduction pass
Didn't spot anything that might have led to a genuine bug, but this should help improve the signal-to-noise ratio of warnings in the future. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render_inline.h')
-rw-r--r--src/sna/sna_render_inline.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h
index b09ad755..a2bee0c1 100644
--- a/src/sna/sna_render_inline.h
+++ b/src/sna/sna_render_inline.h
@@ -78,17 +78,17 @@ is_cpu(DrawablePtr drawable)
}
static inline Bool
-is_dirty_gpu(struct sna *sna, DrawablePtr drawable)
+is_dirty_gpu(DrawablePtr drawable)
{
struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable);
return priv && priv->gpu_bo && priv->gpu_damage;
}
static inline Bool
-too_small(struct sna *sna, DrawablePtr drawable)
+too_small(DrawablePtr drawable)
{
return (drawable->width * drawable->height <= 256) &&
- !is_dirty_gpu(sna, drawable);
+ !is_dirty_gpu(drawable);
}
static inline Bool