external/minigbm
Revisión | ded8396c78a688ed0eb18c2ffc19f00a3746b935 (tree) |
---|---|
Tiempo | 2020-01-27 06:44:19 |
Autor | Deepak Sharma <Deepak.Sharma@amd....> |
Commiter | Mauro Rossi |
amdgpu: Don't use AMDGPU_GEM_CREATE_EXPLICIT_SYNC flag.
some of the android.media.cts.EncodeDecodeTest in media test are
failing when enabled.
Bug=b:115585732
TEST=run android.media.cts.EncodeDecodeTest tests
Change-Id: Id54236a4441e6441bd8500a81f83c00e2fa405d8
Signed-off-by: Deepak Sharma <Deepak.Sharma@amd.com>
Reviewed-on: https://chromium-review.googlesource.com/1329993
Commit-Ready: Deepak Sharma <deepak.sharma@amd.com>
Tested-by: Deepak Sharma <deepak.sharma@amd.com>
Reviewed-by: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
@@ -134,7 +134,6 @@ static int amdgpu_create_bo(struct bo *bo, uint32_t width, uint32_t height, uint | ||
134 | 134 | uint32_t plane, stride; |
135 | 135 | struct combination *combo; |
136 | 136 | union drm_amdgpu_gem_create gem_create; |
137 | - struct amdgpu_priv *priv = bo->drv->priv; | |
138 | 137 | |
139 | 138 | combo = drv_get_combination(bo->drv, format, use_flags); |
140 | 139 | if (!combo) |
@@ -174,12 +173,6 @@ static int amdgpu_create_bo(struct bo *bo, uint32_t width, uint32_t height, uint | ||
174 | 173 | if (!(use_flags & (BO_USE_SW_READ_OFTEN | BO_USE_SCANOUT))) |
175 | 174 | gem_create.in.domain_flags |= AMDGPU_GEM_CREATE_CPU_GTT_USWC; |
176 | 175 | |
177 | - /* If drm_version >= 21 everything exposes explicit synchronization primitives | |
178 | - and chromeos/arc++ will use them. Disable implicit synchronization. */ | |
179 | - if (priv->drm_version >= 21) { | |
180 | - gem_create.in.domain_flags |= AMDGPU_GEM_CREATE_EXPLICIT_SYNC; | |
181 | - } | |
182 | - | |
183 | 176 | /* Allocate the buffer with the preferred heap. */ |
184 | 177 | ret = drmCommandWriteRead(drv_get_fd(bo->drv), DRM_AMDGPU_GEM_CREATE, &gem_create, |
185 | 178 | sizeof(gem_create)); |