dri: Introduce SWAP_METHOD tokens
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 9 Aug 2017 09:25:10 +0000 (11:25 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 10 Aug 2017 07:15:33 +0000 (09:15 +0200)
commit2437ebd7059062d59d2d9b8c6c91977432a5aafa
tree0ae8233ccdb62920371fce53e6da456ce0ed73f0
parent48bd91785a5231fcadfcfccd0b193c142bc24a40
dri: Introduce SWAP_METHOD tokens

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 <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
include/GL/internal/dri_interface.h
src/gallium/state_trackers/dri/dri_screen.c
src/glx/dri_common.c
src/mesa/drivers/dri/common/utils.c
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/nouveau/nouveau_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/swrast/swrast.c