diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-03-18 10:39:03 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-03-18 10:39:03 +0900 |
commit | fcd37f65f485291084c174666bd605e215bf1398 (patch) | |
tree | 137d96b1d7d1fb8a8bdca5c42d326453cfeb5f16 /src/radeon_dri3.c | |
parent | f940fd741b15f03393037c5bb904cd74f012de9d (diff) |
DRI3: Use open hook instead of open_client
We don't need the client pointer, and this allows it to work with older
versions of xserver as well.
Diffstat (limited to 'src/radeon_dri3.c')
-rw-r--r-- | src/radeon_dri3.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c index 1413a62f..ea0f28b0 100644 --- a/src/radeon_dri3.c +++ b/src/radeon_dri3.c @@ -41,10 +41,7 @@ static int -radeon_dri3_open_client(ClientPtr client, - ScreenPtr screen, - RRProviderPtr provider, - int *out) +radeon_dri3_open(ScreenPtr screen, RRProviderPtr provider, int *out) { ScrnInfoPtr scrn = xf86ScreenToScrn(screen); RADEONInfoPtr info = RADEONPTR(scrn); @@ -162,9 +159,9 @@ static int radeon_dri3_fd_from_pixmap(ScreenPtr screen, } static dri3_screen_info_rec radeon_dri3_screen_info = { - .version = 1, + .version = 0, - .open_client = radeon_dri3_open_client, + .open = radeon_dri3_open, .pixmap_from_fd = radeon_dri3_pixmap_from_fd, .fd_from_pixmap = radeon_dri3_fd_from_pixmap }; |