[libkwineffects] Detect AMD Navi GPUs
ClosedPublic

Authored by zzag on Feb 5 2020, 12:46 PM.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Feb 5 2020, 12:46 PM
Restricted Application added a project: KWin. · View Herald TranscriptFeb 5 2020, 12:46 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Feb 5 2020, 12:46 PM
zzag updated this revision to Diff 75047.Feb 5 2020, 12:53 PM

Minor update.

davidedmundson added inline comments.
libkwineffects/kwinglplatform.cpp
229

Where did you get these names from?

zzag added inline comments.Feb 5 2020, 7:49 PM
libkwineffects/kwinglplatform.cpp
229

From Mesa's source code.

mesa/src/gallium/drivers/radeonsi/si_get.c: see si_init_renderer_string()
mesa/src/amd/common/ac_gpu_info.c: see ac_query_gpu_info()
mesa/src/amd/common/amd_family.h: list of family names and chip classes
linux/drivers/gpu/drm/amd/amdkfd/kfd_device.c

The key point is that RadeonSI puts the name of GPU's ASIC family in the renderer string.

davidedmundson accepted this revision.Feb 5 2020, 7:51 PM

Cool, as long as there's some original source I'm happy

This revision is now accepted and ready to land.Feb 5 2020, 7:51 PM
This revision was automatically updated to reflect the committed changes.