mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
glx/egl "multibuffers" denotes if server side support DRI3 multi plane and modifiers which is version >= 1.2. But now it returns true just when DRI3 version >= 1. This causes problem when xserver with amdgpu DDX which only support DRI3 1.0, so "multibuffers" gets set unexpectedly, and client send DRI3 >= 1.2 request to server which gets unimplemented error. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31657>
32 lines
1.4 KiB
C
32 lines
1.4 KiB
C
/*
|
|
* Copyright © 2013 Keith Packard
|
|
* Copyright © 2015 Boyan Ding
|
|
*
|
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
* documentation for any purpose is hereby granted without fee, provided that
|
|
* the above copyright notice appear in all copies and that both that copyright
|
|
* notice and this permission notice appear in supporting documentation, and
|
|
* that the name of the copyright holders not be used in advertising or
|
|
* publicity pertaining to distribution of the software without specific,
|
|
* written prior permission. The copyright holders make no representations
|
|
* about the suitability of this software for any purpose. It is provided "as
|
|
* is" without express or implied warranty.
|
|
*
|
|
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
|
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
* OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#ifndef LOADER_X11_H
|
|
#define LOADER_X11_H
|
|
|
|
#include <xcb/xcb.h>
|
|
#include <inttypes.h>
|
|
int x11_dri3_open(xcb_connection_t *conn, xcb_window_t root, uint32_t provider);
|
|
bool x11_dri3_has_multibuffer(xcb_connection_t *c);
|
|
|
|
#endif
|