[Mesa-dev,1/4] dri3: Fix indentation of buffer age code

Submitted by Eric Anholt on March 8, 2014, 1:26 a.m.

Details

Message ID 1394242021-23124-1-git-send-email-eric@anholt.net
State New
Headers show

Not browsing as part of any series.

Commit Message

Eric Anholt March 8, 2014, 1:26 a.m.
---

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(-)

Patch hide | download patch | download mbox

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

Comments

Am 2014-03-08 02:26, schrieb Eric Anholt:
> ---
>
> 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?
>
Hi,

Sorry for the late response. Yes those changes make sense to me.

Reviewed-By: Adel Gadllah <adel.gadllah@gmail.com>

Adel