loader: Just include driconf.h instead of redefining its values.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17470>
This commit is contained in:
parent
4c6a1e3f33
commit
bcc9199df2
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
#include "loader_dri_helper.h"
|
||||
#include "util/driconf.h"
|
||||
|
||||
__DRIimage *loader_dri_create_image(__DRIscreen *screen,
|
||||
const __DRIimageExtension *image,
|
||||
|
@ -73,12 +74,6 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen,
|
|||
loaderPrivate);
|
||||
}
|
||||
|
||||
/* From driconf.h, user exposed so should be stable */
|
||||
#define DRI_CONF_VBLANK_NEVER 0
|
||||
#define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
|
||||
#define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
|
||||
#define DRI_CONF_VBLANK_ALWAYS_SYNC 3
|
||||
|
||||
static int dri_vblank_mode(__DRIscreen *driScreen, const __DRI2configQueryExtension *config)
|
||||
{
|
||||
GLint vblank_mode = DRI_CONF_VBLANK_DEF_INTERVAL_1;
|
||||
|
|
Loading…
Reference in New Issue