Mesa (master): dri3: Clean up struct dri3_drawable

Kenneth Graunke kwg at kemper.freedesktop.org
Sat Dec 21 00:31:09 UTC 2013


Module: Mesa
Branch: master
Commit: ca2012a912dcd3d671071ad7472c8a7c570745f2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca2012a912dcd3d671071ad7472c8a7c570745f2

Author: Keith Packard <keithp at keithp.com>
Date:   Mon Nov 25 21:10:02 2013 -0800

dri3: Clean up struct dri3_drawable

Move the depth field up with width and height.

Remove unused previous_time and frames fields.

Signed-off-by: Keith Packard <keithp at keithp.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glx/dri3_priv.h |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/glx/dri3_priv.h b/src/glx/dri3_priv.h
index eb81ce7..f33a719 100644
--- a/src/glx/dri3_priv.h
+++ b/src/glx/dri3_priv.h
@@ -177,7 +177,7 @@ dri3_pixmap_buf_id(enum dri3_buffer_type buffer_type)
 struct dri3_drawable {
    __GLXDRIdrawable base;
    __DRIdrawable *driDrawable;
-   int width, height;
+   int width, height, depth;
    int swap_interval;
    uint8_t have_back;
    uint8_t have_fake_front;
@@ -193,13 +193,9 @@ struct dri3_drawable {
    /* For WaitMSC */
    uint32_t present_msc_request_serial;
    uint32_t present_msc_event_serial;
-   
-   uint64_t previous_time;
-   unsigned frames;
 
    struct dri3_buffer *buffers[DRI3_NUM_BUFFERS];
    int cur_back;
-   int depth;
 
    uint32_t *stamp;
 




More information about the mesa-commit mailing list