mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 22:00:11 +01:00
amd: add vpe_version
vpe_version describes which generation of vpe capabilities a chip has. Signed-off-by: Peyton Lee <peytolee@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35361>
This commit is contained in:
parent
548b026297
commit
fd1930b035
3 changed files with 17 additions and 0 deletions
|
|
@ -963,6 +963,12 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
|||
break;
|
||||
}
|
||||
|
||||
if (info->ip[AMD_IP_VPE].num_queues)
|
||||
info->vpe_ip_version = (enum vpe_version)VPE_VERSION_VALUE(
|
||||
info->ip[AMD_IP_VPE].ver_major,
|
||||
info->ip[AMD_IP_VPE].ver_minor,
|
||||
info->ip[AMD_IP_VPE].ver_rev);
|
||||
|
||||
/* Set which chips have dedicated VRAM. */
|
||||
info->has_dedicated_vram = !(device_info.ids_flags & AMDGPU_IDS_FLAGS_FUSION);
|
||||
|
||||
|
|
|
|||
|
|
@ -220,6 +220,7 @@ struct radeon_info {
|
|||
enum vcn_version vcn_ip_version;
|
||||
enum sdma_version sdma_ip_version;
|
||||
enum rt_version rt_ip_version;
|
||||
enum vpe_version vpe_ip_version;
|
||||
|
||||
/* Kernel & winsys capabilities. */
|
||||
uint32_t drm_major; /* version */
|
||||
|
|
|
|||
|
|
@ -218,6 +218,16 @@ enum vcn_version{
|
|||
VCN_5_0_1,
|
||||
};
|
||||
|
||||
#define VPE_VERSION_VALUE(major, minor, rev) (((major) << 16) | ((minor) << 8) | (rev))
|
||||
|
||||
enum vpe_version {
|
||||
VPE_UNKNOWN = 0,
|
||||
VPE_6_1_0 = VPE_VERSION_VALUE(6, 1, 0),
|
||||
VPE_6_1_1 = VPE_VERSION_VALUE(6, 1, 1),
|
||||
VPE_6_1_2 = VPE_VERSION_VALUE(6, 1, 2),
|
||||
VPE_6_1_3 = VPE_VERSION_VALUE(6, 1, 3),
|
||||
};
|
||||
|
||||
#define SDMA_VERSION_VALUE(major, minor) (((major) << 8) | (minor))
|
||||
|
||||
enum sdma_version {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue