[Mesa-dev] [PATCH 1/4] dri3: Fix indentation of buffer age code
Eric Anholt
eric at anholt.net
Fri Mar 7 17:26:58 PST 2014
---
Here's my series of cleanups and fixes for your EXT_buffer_age patch.
I've run it through piglit, and run gnome-shell with it now.
I'm proposing moving patch 3 before your patch, then squashing 1, 2,
and 4 in with yours. Does this sound good?
src/glx/dri3_glx.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index fd4f65a..4388b74 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -1391,13 +1391,13 @@ dri3_swap_buffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
static int
dri3_get_buffer_age(__GLXDRIdrawable *pdraw)
{
- struct dri3_drawable *priv = (struct dri3_drawable *) pdraw;
- const struct dri3_buffer *const back = dri3_back_buffer(priv);
+ struct dri3_drawable *priv = (struct dri3_drawable *) pdraw;
+ const struct dri3_buffer *const back = dri3_back_buffer(priv);
- if (back->last_swap != 0)
- return priv->swap_count - back->last_swap;
- else
- return 0;
+ if (back->last_swap != 0)
+ return priv->swap_count - back->last_swap;
+ else
+ return 0;
}
/** dri3_open
--
1.9.0
More information about the mesa-dev
mailing list