Module: Mesa
Branch: main
Commit: cb24faf1a639a0a84836b875d0f57d49c823002b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb24faf1a639a0a84836b875d0f57d49c823002b

Author: Dave Airlie <[email protected]>
Date:   Tue Feb 21 05:59:41 2023 +1000

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21433>

---

 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 0739726ec70..3d85653fbe3 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) {

Reply via email to