diff options
author | Leo Liu <leo.liu@amd.com> | 2017-05-02 16:22:26 -0400 |
---|---|---|
committer | Leo Liu <leo.liu@amd.com> | 2017-05-25 11:40:20 -0400 |
commit | 0152a0cf16cf390f62a6fdaac94996ad8cf2757c (patch) | |
tree | 6b4ca5ac6a7af2f48ca4df87d1c8d86ef4ba8f36 | |
parent | a106866962fc7248773f8f2febaf87162944f0ae (diff) |
radeon/vcn: add decode message destroy
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vcn_dec.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index a61620ddba6..d213de5e387 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c @@ -118,7 +118,16 @@ static struct pb_buffer *rvcn_dec_message_decode(struct radeon_decoder *dec) static void rvcn_dec_message_destroy(struct radeon_decoder *dec) { - /* TODO */ + rvcn_dec_message_header_t *header = dec->msg; + + memset(dec->msg, 0, sizeof(rvcn_dec_message_header_t)); + header->header_size = sizeof(rvcn_dec_message_header_t); + header->total_size = sizeof(rvcn_dec_message_header_t) - + sizeof(rvcn_dec_message_index_t); + header->num_buffers = 0; + header->msg_type = RDECODE_MSG_DESTROY; + header->stream_handle = dec->stream_handle; + header->status_report_feedback_number = 0; } static void rvcn_dec_message_feedback(struct radeon_decoder *dec) |