iris: Stop using SET_DOMAIN on discrete GPUs altogether
SET_DOMAIN is definitely not going to be allowed on discrete GPUs, so don't even bother trying it. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12044>
This commit is contained in:

committed by
Jason Ekstrand

parent
8fe5152b72
commit
cca5120772
@@ -577,17 +577,19 @@ alloc_fresh_bo(struct iris_bufmgr *bufmgr, uint64_t bo_size, bool local)
|
|||||||
bo->idle = true;
|
bo->idle = true;
|
||||||
bo->local = local;
|
bo->local = local;
|
||||||
|
|
||||||
/* Calling set_domain() will allocate pages for the BO outside of the
|
if (bufmgr->vram.size == 0) {
|
||||||
* struct mutex lock in the kernel, which is more efficient than waiting
|
/* Calling set_domain() will allocate pages for the BO outside of the
|
||||||
* to create them during the first execbuf that uses the BO.
|
* struct mutex lock in the kernel, which is more efficient than waiting
|
||||||
*/
|
* to create them during the first execbuf that uses the BO.
|
||||||
struct drm_i915_gem_set_domain sd = {
|
*/
|
||||||
.handle = bo->gem_handle,
|
struct drm_i915_gem_set_domain sd = {
|
||||||
.read_domains = I915_GEM_DOMAIN_CPU,
|
.handle = bo->gem_handle,
|
||||||
.write_domain = 0,
|
.read_domains = I915_GEM_DOMAIN_CPU,
|
||||||
};
|
.write_domain = 0,
|
||||||
|
};
|
||||||
|
|
||||||
intel_ioctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &sd);
|
intel_ioctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &sd);
|
||||||
|
}
|
||||||
|
|
||||||
return bo;
|
return bo;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user