Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-minigbm: Commit

external/minigbm


Commit MetaInfo

Revisiónded8396c78a688ed0eb18c2ffc19f00a3746b935 (tree)
Tiempo2020-01-27 06:44:19
AutorDeepak Sharma <Deepak.Sharma@amd....>
CommiterMauro Rossi

Log Message

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>

Cambiar Resumen

Diferencia incremental

--- a/amdgpu.c
+++ b/amdgpu.c
@@ -134,7 +134,6 @@ static int amdgpu_create_bo(struct bo *bo, uint32_t width, uint32_t height, uint
134134 uint32_t plane, stride;
135135 struct combination *combo;
136136 union drm_amdgpu_gem_create gem_create;
137- struct amdgpu_priv *priv = bo->drv->priv;
138137
139138 combo = drv_get_combination(bo->drv, format, use_flags);
140139 if (!combo)
@@ -174,12 +173,6 @@ static int amdgpu_create_bo(struct bo *bo, uint32_t width, uint32_t height, uint
174173 if (!(use_flags & (BO_USE_SW_READ_OFTEN | BO_USE_SCANOUT)))
175174 gem_create.in.domain_flags |= AMDGPU_GEM_CREATE_CPU_GTT_USWC;
176175
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-
183176 /* Allocate the buffer with the preferred heap. */
184177 ret = drmCommandWriteRead(drv_get_fd(bo->drv), DRM_AMDGPU_GEM_CREATE, &gem_create,
185178 sizeof(gem_create));
Show on old repository browser