Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Put in dummy gem uvm o...
details: https://anonhg.NetBSD.org/src/rev/6c4c499ca78a
branches: trunk
changeset: 330672:6c4c499ca78a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Jul 17 15:09:00 2014 +0000
description:
Put in dummy gem uvm ops for radeon (uses ttm for real mmap).
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_drv.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r e364c69d73f0 -r 6c4c499ca78a sys/external/bsd/drm2/dist/drm/radeon/radeon_drv.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_drv.c Thu Jul 17 14:55:32 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_drv.c Thu Jul 17 15:09:00 2014 +0000
@@ -337,6 +337,9 @@
const struct pci_device_id *const radeon_device_ids = pciidlist;
const size_t radeon_n_device_ids = __arraycount(pciidlist);
+/* XXX Kludge for the non-GEM GEM that radeon uses. */
+static const struct uvm_pagerops radeon_gem_uvm_ops;
+
#else
static int radeon_kick_out_firmware_fb(struct pci_dev *pdev)
@@ -560,6 +563,7 @@
.dumb_destroy = drm_gem_dumb_destroy,
#ifdef __NetBSD__
.fops = NULL,
+ .gem_uvm_ops = &radeon_gem_uvm_ops,
#else
.fops = &radeon_driver_kms_fops,
#endif
Home |
Main Index |
Thread Index |
Old Index