mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 09:18:04 +02:00
Fix a user-buffer check.
This commit is contained in:
parent
82ffcbbd62
commit
44ad6f409d
1 changed files with 1 additions and 1 deletions
|
|
@ -945,7 +945,7 @@ static int drm_bo_new_mask(struct drm_buffer_object *bo,
|
|||
uint32_t new_props;
|
||||
|
||||
if (bo->type == drm_bo_type_user &&
|
||||
((used_mask & (DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING)) !=
|
||||
((new_flags & (DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING)) !=
|
||||
(DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING))) {
|
||||
DRM_ERROR("User buffers require cache-coherent memory.\n");
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue