summaryrefslogtreecommitdiffstats
path: root/amdgpu.c
diff options
context:
space:
mode:
authorSatyajit Sahu <satyajit.sahu@amd.com>2020-03-04 15:53:30 +0530
committerCommit Bot <commit-bot@chromium.org>2020-03-13 14:01:57 +0000
commitcfcea2f16549205a2a7e626cc38e995acd54cbaa (patch)
tree0eb24753cc1299920c80cf42e482007c1e5c8091 /amdgpu.c
parent9b367b3efed08fee7568dee8600dcf9335d547ef (diff)
downloadplatform_external_minigbm-cfcea2f16549205a2a7e626cc38e995acd54cbaa.tar.gz
platform_external_minigbm-cfcea2f16549205a2a7e626cc38e995acd54cbaa.tar.bz2
platform_external_minigbm-cfcea2f16549205a2a7e626cc38e995acd54cbaa.zip
arc-cros-gralloc: amdgpu: Use DRI_PATH to load radeonsi
Use DRI_PATH cpp flag exported by ebuild to load the radeonsi library. This ensures 64/32 bit libraries are loaded as per arch. BUG=b:148405947, b:148045046, b:139690910, b:150425665, b:150422260, b:150742051, b:150742059 TEST=Launch play store, no black screen observed Cq-Depend: chromium:2098992 Change-Id: I12649457c82808aafb468d3d3123ff3eb028e7b6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2087294 Reviewed-by: Drew Davenport <ddavenport@chromium.org> Tested-by: Drew Davenport <ddavenport@chromium.org> Commit-Queue: Drew Davenport <ddavenport@chromium.org>
Diffstat (limited to 'amdgpu.c')
-rw-r--r--amdgpu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/amdgpu.c b/amdgpu.c
index bb9342e..6e1b9b8 100644
--- a/amdgpu.c
+++ b/amdgpu.c
@@ -18,13 +18,9 @@
#include "helpers.h"
#include "util.h"
-#ifdef __ANDROID__
-#define DRI_PATH "/vendor/lib/dri/radeonsi_dri.so"
-#else
// clang-format off
#define DRI_PATH STRINGIZE(DRI_DRIVER_DIR/radeonsi_dri.so)
// clang-format on
-#endif
#define TILE_TYPE_LINEAR 0
/* DRI backend decides tiling in this case. */