pkgsrc-wip/libdrm-dfbsd/patches/patch-radeon_radeon__cs__gem.c
David Shao f753fd37c9 libdrm-dfbsd: Replace libdrm Net/Free/DragonFly BSD xf86drm.c
Implements changes to libdrm to work with mesa 13.0.2 discussed in
pkg/51795
(x11/libdrm update xf86drm.c for mesa 13.0.2 needs negotiation)

On NetBSD modular xorg requires kernel changes discussed in
kernel/51786
(mesa 13.0.2 libdrm 2.4.74 Radeon needs kernel support, new ioctl or sysctl)
2017-01-17 00:25:40 -08:00

16 lines
528 B
C

$NetBSD: patch-radeon_radeon__cs__gem.c,v 1.1 2014/10/26 10:20:10 wiz Exp $
--- radeon/radeon_cs_gem.c.orig 2014-09-28 16:19:54.000000000 +0000
+++ radeon/radeon_cs_gem.c
@@ -525,9 +525,10 @@ static struct radeon_cs_funcs radeon_cs_
static int radeon_get_device_id(int fd, uint32_t *device_id)
{
- struct drm_radeon_info info = {};
+ struct drm_radeon_info info;
int r;
+ memset(&info, 0, sizeof info);
*device_id = 0;
info.request = RADEON_INFO_DEVICE_ID;
info.value = (uintptr_t)device_id;