mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-23 23:30:02 +00:00
dri3: return 1.4 version if we can do 1.4
Signed-off-by: Joseph Crowell <joseph.w.crowell@gmail.com>
This commit is contained in:
committed by
Enrico Weigelt
parent
2394c7c1cc
commit
8f542381da
@@ -37,17 +37,6 @@
|
||||
#include "randrstr_priv.h"
|
||||
#include "dixstruct_priv.h"
|
||||
|
||||
static Bool
|
||||
dri3_screen_can_one_point_four(ScreenPtr screen)
|
||||
{
|
||||
dri3_screen_priv_ptr dri3 = dri3_screen_priv(screen);
|
||||
|
||||
return dri3 &&
|
||||
dri3->info &&
|
||||
dri3->info->version >= 4 &&
|
||||
dri3->info->import_syncobj;
|
||||
}
|
||||
|
||||
static Bool
|
||||
dri3_screen_can_one_point_one(ScreenPtr screen)
|
||||
{
|
||||
@@ -74,6 +63,17 @@ dri3_screen_can_one_point_two(ScreenPtr screen)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
dri3_screen_can_one_point_four(ScreenPtr screen)
|
||||
{
|
||||
dri3_screen_priv_ptr dri3 = dri3_screen_priv(screen);
|
||||
|
||||
return dri3 &&
|
||||
dri3->info &&
|
||||
dri3->info->version >= 4 &&
|
||||
dri3->info->import_syncobj;
|
||||
}
|
||||
|
||||
static int
|
||||
proc_dri3_query_version(ClientPtr client)
|
||||
{
|
||||
@@ -98,6 +98,9 @@ proc_dri3_query_version(ClientPtr client)
|
||||
if (!dri3_screen_can_one_point_four(walkScreen)) {
|
||||
reply.minorVersion = 2;
|
||||
break;
|
||||
} else {
|
||||
reply.minorVersion = 4;
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -113,6 +116,9 @@ proc_dri3_query_version(ClientPtr client)
|
||||
if (!dri3_screen_can_one_point_four(walkScreen)) {
|
||||
reply.minorVersion = 2;
|
||||
break;
|
||||
} else {
|
||||
reply.minorVersion = 4;
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user