npub1yk…d2jl0 on Nostr: struct amdgpu_device *adev = ring->adev; bool ret = false; if ...
struct amdgpu_device *adev = ring->adev;
bool ret = false;
if (amdgpu_ip_version(adev, UVD_HWIP, 0) >= IP_VERSION(4, 0, 0))
ret = true;
return ret;
...I know AMD is killing this code now and I shouldn't bother complaining about something i have no intention of contributing to but goddammit quality MATTERS. Craftsmanship MATTERS
return amdgpu_ip_version(adev, UVD_HWIP, 0) >= IP_VERSION(4, 0, 0);
bool ret = false;
if (amdgpu_ip_version(adev, UVD_HWIP, 0) >= IP_VERSION(4, 0, 0))
ret = true;
return ret;
...I know AMD is killing this code now and I shouldn't bother complaining about something i have no intention of contributing to but goddammit quality MATTERS. Craftsmanship MATTERS
return amdgpu_ip_version(adev, UVD_HWIP, 0) >= IP_VERSION(4, 0, 0);