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

Author: sonjiang <sonny.ji...@amd.com>
Date:   Tue Jun 28 11:23:41 2016 -0400

radeon/uvd: fix a h265 context size bug

Signed-off-by: sonjiang <sonny.ji...@amd.com>
Cc: "12.0" <mesa-sta...@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>

---

 src/gallium/drivers/radeon/radeon_uvd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/radeon/radeon_uvd.c 
b/src/gallium/drivers/radeon/radeon_uvd.c
index d4355fb..97765da 100644
--- a/src/gallium/drivers/radeon/radeon_uvd.c
+++ b/src/gallium/drivers/radeon/radeon_uvd.c
@@ -1096,6 +1096,9 @@ static void ruvd_end_frame(struct pipe_video_codec 
*decoder,
                        }
                        rvid_clear_buffer(decoder->context, &dec->ctx);
                }
+
+               if (dec->ctx.res)
+                       dec->msg->body.decode.dpb_reserved = 
dec->ctx.res->buf->size;
                break;
 
        case PIPE_VIDEO_FORMAT_VC1:

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to