summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-03-27 22:22:35 +0100
committerAlex Deucher <alexander.deucher@amd.com>2015-05-07 13:21:32 -0400
commit91aa694a7da7b690a3e5d59a1a8fa42cbb3ebda4 (patch)
tree7841cfed161e756dc7d1b4317a2582763405d343
parentafc33040f862e2e13ba7f132bb363cf16fb6a1d7 (diff)
ddx: remove AMDGPUIsAccelWorking
libdrm fails to initialize without acceleration, so this always returns true. Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/amdgpu_kms.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 39e15d3..d66f050 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -237,18 +237,6 @@ amdgpu_flush_callback(CallbackListPtr * list,
}
}
-static Bool AMDGPUIsAccelWorking(ScrnInfoPtr pScrn)
-{
- AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(pScrn);
- uint32_t accel_working;
-
- if (amdgpu_query_info(pAMDGPUEnt->pDev, AMDGPU_INFO_ACCEL_WORKING,
- sizeof(accel_working), &accel_working) != 0)
- return FALSE;
-
- return accel_working;
-}
-
/* This is called by AMDGPUPreInit to set up the default visual */
static Bool AMDGPUPreInitVisual(ScrnInfoPtr pScrn)
{
@@ -333,8 +321,7 @@ static Bool AMDGPUPreInitAccel_KMS(ScrnInfoPtr pScrn)
{
AMDGPUInfoPtr info = AMDGPUPTR(pScrn);
- if (!xf86ReturnOptValBool(info->Options, OPTION_NOACCEL, false) &&
- AMDGPUIsAccelWorking(pScrn)) {
+ if (!xf86ReturnOptValBool(info->Options, OPTION_NOACCEL, false)) {
Bool use_glamor = TRUE;
#ifdef GBM_BO_USE_LINEAR
const char *accel_method;