Skip to content

Commit e27f8a4

Browse files
committed
drm/xe: Stop passing user flag to xe_bo_create_user()
It's quite redundant to pass XE_BO_CREATE_USER_BIT to xe_bo_create_user() since the only difference of that function is to force that flag. Stop passing the flag in the few cases that were explicitly doing so. Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent b15e653 commit e27f8a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/xe/tests/xe_dma_buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static void xe_test_dmabuf_import_same_driver(struct xe_device *xe)
125125

126126
kunit_info(test, "running %s\n", __func__);
127127
bo = xe_bo_create_user(xe, NULL, NULL, size, DRM_XE_GEM_CPU_CACHING_WC,
128-
ttm_bo_type_device, XE_BO_CREATE_USER_BIT | params->mem_mask);
128+
ttm_bo_type_device, params->mem_mask);
129129
if (IS_ERR(bo)) {
130130
KUNIT_FAIL(test, "xe_bo_create() failed with err=%ld\n",
131131
PTR_ERR(bo));

drivers/gpu/drm/xe/xe_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ int xe_bo_dumb_create(struct drm_file *file_priv,
22792279
DRM_XE_GEM_CPU_CACHING_WC,
22802280
ttm_bo_type_device,
22812281
XE_BO_CREATE_VRAM_IF_DGFX(xe_device_get_root_tile(xe)) |
2282-
XE_BO_CREATE_USER_BIT | XE_BO_SCANOUT_BIT |
2282+
XE_BO_SCANOUT_BIT |
22832283
XE_BO_NEEDS_CPU_ACCESS);
22842284
if (IS_ERR(bo))
22852285
return PTR_ERR(bo);

0 commit comments

Comments
 (0)