mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 04:38:09 +02:00
anv: define ANV_VIDEO_H264_MAX_DPB_SLOTS
prep work for remapping slot ids for h264 decoding. Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32823>
This commit is contained in:
parent
61593e9c54
commit
9221feaf79
2 changed files with 2 additions and 1 deletions
|
|
@ -6276,6 +6276,7 @@ struct anv_vid_mem {
|
|||
|
||||
#define ANV_MB_WIDTH 16
|
||||
#define ANV_MB_HEIGHT 16
|
||||
#define ANV_VIDEO_H264_MAX_DPB_SLOTS 17
|
||||
#define ANV_VIDEO_H264_MAX_NUM_REF_FRAME 16
|
||||
#define ANV_VIDEO_H265_MAX_NUM_REF_FRAME 16
|
||||
#define ANV_VIDEO_H265_HCP_NUM_REF_FRAME 8
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ anv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice,
|
|||
if (pVideoProfile->lumaBitDepth != VK_VIDEO_COMPONENT_BIT_DEPTH_8_BIT_KHR)
|
||||
return VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR;
|
||||
|
||||
pCapabilities->maxDpbSlots = 17;
|
||||
pCapabilities->maxDpbSlots = ANV_VIDEO_H264_MAX_DPB_SLOTS;
|
||||
pCapabilities->maxActiveReferencePictures = ANV_VIDEO_H264_MAX_NUM_REF_FRAME;
|
||||
pCapabilities->pictureAccessGranularity.width = ANV_MB_WIDTH;
|
||||
pCapabilities->pictureAccessGranularity.height = ANV_MB_HEIGHT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue