From 2437ebd7059062d59d2d9b8c6c91977432a5aafa Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Wed, 9 Aug 2017 11:25:10 +0200 Subject: dri: Introduce SWAP_METHOD tokens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We shouldn't be using GLX tokens in the dri subsystem, so define dri SWAP_METHOD tokens and translate when necessary. Unfortunately the X server uses the dri swap method value untranslated as the GLX fbconfig swapMethod, so we can't enumerate these tokens arbitrarily, but rather need to make them have the same values as the corresponding GLX tokens. Signed-off-by: Thomas Hellstrom Reviewed-by: Brian Paul Reviewed-by: Michel Dänzer --- src/mesa/drivers/dri/nouveau/nouveau_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/nouveau') diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c index 65caec27eb3..95b3469daae 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c @@ -65,7 +65,7 @@ nouveau_get_configs(uint32_t chipset) }; const GLenum back_buffer_modes[] = { - GLX_NONE, GLX_SWAP_UNDEFINED_OML + __DRI_ATTRIB_SWAP_NONE, __DRI_ATTRIB_SWAP_UNDEFINED }; for (i = 0; i < ARRAY_SIZE(formats); i++) { -- cgit v1.2.3