st/va: remove nonesense HEVC picture id handling
authorChristian König <christian.koenig@amd.com>
Fri, 4 Dec 2015 12:11:28 +0000 (13:11 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 15 Dec 2015 10:25:02 +0000 (11:25 +0100)
The picture id in this case is a VA-API surface handle, checking
for a certain value can't be correct.

Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/picture_hevc.c

index dc66b0f3fd58f7ecc05a80ecf9bb35de201ed141..28743ee7aa674f1c5f471bbf462a5eae19580b41 100644 (file)
@@ -159,11 +159,6 @@ void vlVaHandlePictureParameterBufferHEVC(vlVaDriver *drv, vlVaContext *context,
    for (i = 0 ; i < 15 ; i++) {
       context->desc.h265.PicOrderCntVal[i] = hevc->ReferenceFrames[i].pic_order_cnt;
 
-      unsigned int index = hevc->ReferenceFrames[i].picture_id & 0x7F;
-
-      if (index == 0x7F)
-         continue;
-
       vlVaGetReferenceFrame(drv, hevc->ReferenceFrames[i].picture_id, &context->desc.h265.ref[i]);
 
       if ((hevc->ReferenceFrames[i].flags & VA_PICTURE_HEVC_RPS_ST_CURR_BEFORE) && (iBefore < 8)) {