mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 04:38:09 +02:00
d3d12: Fix VP9 Decode - Checking 0xFF instead of 0x7F for invalid frame_ref[i].Index7Bits
Fixes:c8e8ce8359("d3d12: Add VP9 Decode support") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21507> (cherry picked from commit9490633723)
This commit is contained in:
parent
14b5e17133
commit
95d788e0b6
3 changed files with 5 additions and 4 deletions
|
|
@ -7006,7 +7006,7 @@
|
|||
"description": "d3d12: Fix VP9 Decode - Checking 0xFF instead of 0x7F for invalid frame_ref[i].Index7Bits",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "c8e8ce8359ceb9161ac05cf48b15e2e6a298ebd6"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ d3d12_video_decoder_dxva_picparams_from_pipe_picparams_vp9(
|
|||
dxvaStructure.ref_frame_coded_width[i] = pipe_vp9->ref[i]->width;
|
||||
dxvaStructure.ref_frame_coded_height[i] = pipe_vp9->ref[i]->height;
|
||||
} else
|
||||
dxvaStructure.ref_frame_map[i].bPicEntry = DXVA_VP9_INVALID_PICTURE_INDEX;
|
||||
dxvaStructure.ref_frame_map[i].bPicEntry = DXVA_VP9_INVALID_PICTURE_ENTRY;
|
||||
}
|
||||
|
||||
/* DXVA spec The enums and indices for ref_frame_sign_bias[] are defined */
|
||||
|
|
@ -319,7 +319,7 @@ d3d12_video_decoder_dxva_picparams_from_pipe_picparams_vp9(
|
|||
const uint8_t signbias_alt_index = 3;
|
||||
|
||||
/* AssociatedFlag When Index7Bits does not contain an index to a valid uncompressed surface, the value shall be set to 127, to indicate that the index is invalid. */
|
||||
memset(&dxvaStructure.frame_refs[0], DXVA_VP9_INVALID_PICTURE_INDEX, sizeof(dxvaStructure.frame_refs));
|
||||
memset(&dxvaStructure.frame_refs[0], DXVA_VP9_INVALID_PICTURE_ENTRY, sizeof(dxvaStructure.frame_refs));
|
||||
|
||||
if (pipe_vp9->ref[pipe_vp9->picture_parameter.pic_fields.last_ref_frame]) {
|
||||
/* AssociatedFlag When Index7Bits does not contain an index to a valid uncompressed surface, the value shall be set to 127, to indicate that the index is invalid. */
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
#include "d3d12_video_types.h"
|
||||
|
||||
constexpr uint16_t DXVA_VP9_INVALID_PICTURE_INDEX = 0xFF;
|
||||
constexpr uint16_t DXVA_VP9_INVALID_PICTURE_INDEX = 0x7F;
|
||||
constexpr uint16_t DXVA_VP9_INVALID_PICTURE_ENTRY = 0xFF;
|
||||
|
||||
#pragma pack(push, BeforeDXVApacking, 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue