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@keithp.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:

committed by
Kenneth Graunke

parent
95b04850d0
commit
ca2012a912
@@ -177,7 +177,7 @@ dri3_pixmap_buf_id(enum dri3_buffer_type buffer_type)
|
|||||||
struct dri3_drawable {
|
struct dri3_drawable {
|
||||||
__GLXDRIdrawable base;
|
__GLXDRIdrawable base;
|
||||||
__DRIdrawable *driDrawable;
|
__DRIdrawable *driDrawable;
|
||||||
int width, height;
|
int width, height, depth;
|
||||||
int swap_interval;
|
int swap_interval;
|
||||||
uint8_t have_back;
|
uint8_t have_back;
|
||||||
uint8_t have_fake_front;
|
uint8_t have_fake_front;
|
||||||
@@ -194,12 +194,8 @@ struct dri3_drawable {
|
|||||||
uint32_t present_msc_request_serial;
|
uint32_t present_msc_request_serial;
|
||||||
uint32_t present_msc_event_serial;
|
uint32_t present_msc_event_serial;
|
||||||
|
|
||||||
uint64_t previous_time;
|
|
||||||
unsigned frames;
|
|
||||||
|
|
||||||
struct dri3_buffer *buffers[DRI3_NUM_BUFFERS];
|
struct dri3_buffer *buffers[DRI3_NUM_BUFFERS];
|
||||||
int cur_back;
|
int cur_back;
|
||||||
int depth;
|
|
||||||
|
|
||||||
uint32_t *stamp;
|
uint32_t *stamp;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user