mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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>
This commit is contained in:
committed by
Alex Deucher
parent
afc33040f8
commit
91aa694a7d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user