Put in dummy gem uvm ops for radeon (uses ttm for real mmap).

This commit is contained in:
riastradh 2014-07-17 15:09:00 +00:00
parent 52c71abc12
commit ced0e0f361
1 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,9 @@ struct drm_driver *const radeon_drm_driver = &kms_driver;
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 @@ static struct drm_driver kms_driver = {
.dumb_destroy = drm_gem_dumb_destroy,
#ifdef __NetBSD__
.fops = NULL,
.gem_uvm_ops = &radeon_gem_uvm_ops,
#else
.fops = &radeon_driver_kms_fops,
#endif