minigbm: For BO_USE_SW usage buffer need not be linear
It is incorrect to force linear for BO_USE_SW usage as mapImage in dri_bo_map converts tiled data and returns linear. BUG=b:78200321 TEST=drm_cursor_test completes within 20 seconds. Change-Id: Ifa3ca2218cee9ff52b049a984a70a54f4899965d Signed-off-by: Satyajit Sahu <satyajit.sahu@amd.com> Reviewed-on: https://chromium-review.googlesource.com/1041448 Commit-Ready: Drew Davenport <ddavenport@chromium.org> Tested-by: Deepak Sharma <deepak.sharma@amd.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
90b14587a4
commit
a0e602b84f
1 changed files with 1 additions and 1 deletions
2
dri.c
2
dri.c
|
|
@ -178,7 +178,7 @@ int dri_bo_create(struct bo *bo, uint32_t width, uint32_t height, uint32_t forma
|
|||
dri_use |= __DRI_IMAGE_USE_SCANOUT;
|
||||
if (use_flags & BO_USE_CURSOR)
|
||||
dri_use |= __DRI_IMAGE_USE_CURSOR;
|
||||
if (use_flags & (BO_USE_LINEAR | BO_USE_SW))
|
||||
if (use_flags & BO_USE_LINEAR)
|
||||
dri_use |= __DRI_IMAGE_USE_LINEAR;
|
||||
|
||||
bo->priv = dri->image_extension->createImage(dri->device, width, height, dri_format,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue