From cb24faf1a639a0a84836b875d0f57d49c823002b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 21 Feb 2023 05:59:41 +1000 Subject: [PATCH] anv/video: disable picture id reampping. This isn't needed at the hw level with vulkan Fixes: 98c58a16ef1a ("anv: add initial video decode support for h264.") Acked-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_video.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/intel/vulkan/genX_video.c b/src/intel/vulkan/genX_video.c index 0739726..3d85653 100644 --- a/src/intel/vulkan/genX_video.c +++ b/src/intel/vulkan/genX_video.c @@ -228,11 +228,7 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer, } anv_batch_emit(&cmd_buffer->batch, GENX(MFD_AVC_PICID_STATE), picid) { - picid.PictureIDRemappingDisable = false; - for (unsigned i = 0; i < frame_info->referenceSlotCount; i++) { - int idx = frame_info->pReferenceSlots[i].slotIndex; - picid.PictureID[i] = idx; - } + picid.PictureIDRemappingDisable = true; } anv_batch_emit(&cmd_buffer->batch, GENX(MFX_AVC_IMG_STATE), avc_img) { -- 2.7.4