From bfb855b0c87e44e52e7f0508491b593300b4f713 Mon Sep 17 00:00:00 2001 From: Luc Ma Date: Thu, 1 Aug 2024 16:43:09 +0800 Subject: [PATCH] dri: use XCB_PRESENT_EVENT_* enum instead of macros for consistency In the dri3_handle_present_event() function, it uses an event enum and two macros. So I suggest to change these all to use enums for consistency. Signed-off-by: Luc Ma Part-of: --- src/gallium/frontends/dri/loader_dri3_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/dri/loader_dri3_helper.c b/src/gallium/frontends/dri/loader_dri3_helper.c index f53427a4981..5927fea4733 100644 --- a/src/gallium/frontends/dri/loader_dri3_helper.c +++ b/src/gallium/frontends/dri/loader_dri3_helper.c @@ -487,7 +487,7 @@ dri3_handle_present_event(struct loader_dri3_drawable *draw, xcb_present_generic_event_t *ge) { switch (ge->evtype) { - case XCB_PRESENT_CONFIGURE_NOTIFY: { + case XCB_PRESENT_EVENT_CONFIGURE_NOTIFY: { xcb_present_configure_notify_event_t *ce = (void *) ge; if (ce->pixmap_flags & PresentWindowDestroyed) { free(ge); @@ -500,7 +500,7 @@ dri3_handle_present_event(struct loader_dri3_drawable *draw, dri_invalidate_drawable(draw->dri_drawable); break; } - case XCB_PRESENT_COMPLETE_NOTIFY: { + case XCB_PRESENT_EVENT_COMPLETE_NOTIFY: { xcb_present_complete_notify_event_t *ce = (void *) ge; /* Compute the processed SBC number from the received 32-bit serial number