diff options
author | Keith Packard <[email protected]> | 2013-11-23 21:58:14 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-12-20 16:31:09 -0800 |
commit | 6b5111398110f9ae374723ad6225ada1a0e60fd2 (patch) | |
tree | 3e2fad1fad0266b31cb9f2eb9c99cc80ddcd4053 /src/glx/dri3_priv.h | |
parent | 547bcc4b571e303c562d99dde74b915e56da54c0 (diff) |
dri3: Rename DRI3_MAX_BACK to DRI3_NUM_BACK
It is the maximum number of back buffers, but the name is confusing and is
easily read as the maximum back buffer index. Chage to DRI3_NUM_BACK to make
the intended usage a bit clearer.
Signed-off-by: Keith Packard <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glx/dri3_priv.h')
-rw-r--r-- | src/glx/dri3_priv.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/glx/dri3_priv.h b/src/glx/dri3_priv.h index f33a719ac68..3f289b9832a 100644 --- a/src/glx/dri3_priv.h +++ b/src/glx/dri3_priv.h @@ -143,14 +143,14 @@ struct dri3_context __DRIcontext *driContext; }; -#define DRI3_MAX_BACK 2 +#define DRI3_NUM_BACK 2 #define DRI3_BACK_ID(i) (i) -#define DRI3_FRONT_ID (DRI3_MAX_BACK) +#define DRI3_FRONT_ID (DRI3_NUM_BACK) static inline int dri3_buf_id_next(int buf_id) { - if (buf_id == DRI3_MAX_BACK - 1) + if (buf_id == DRI3_NUM_BACK - 1) return 0; return buf_id + 1; } @@ -159,7 +159,7 @@ static inline int dri3_buf_id_prev(int buf_id) { if (buf_id == 0) - return DRI3_MAX_BACK - 1; + return DRI3_NUM_BACK - 1; return buf_id - 1; } @@ -172,7 +172,7 @@ dri3_pixmap_buf_id(enum dri3_buffer_type buffer_type) return DRI3_FRONT_ID; } -#define DRI3_NUM_BUFFERS (1 + DRI3_MAX_BACK) +#define DRI3_NUM_BUFFERS (1 + DRI3_NUM_BACK) struct dri3_drawable { __GLXDRIdrawable base; |