summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2017-05-02 16:26:23 -0400
committerLeo Liu <leo.liu@amd.com>2017-05-25 11:40:20 -0400
commit949dd66c9ec914cc2b9b6d40a1d1860b6963cba1 (patch)
tree80a201a1a8962466aeb8445790065a7de83daa2e
parent0152a0cf16cf390f62a6fdaac94996ad8cf2757c (diff)
radeon/vcn: add decode message feedback
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index d213de5e387..2c826c223a2 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -132,7 +132,11 @@ static void rvcn_dec_message_destroy(struct radeon_decoder *dec)
static void rvcn_dec_message_feedback(struct radeon_decoder *dec)
{
- /* TODO */
+ rvcn_dec_feedback_header_t *header = (void*)dec->fb;
+
+ header->header_size = sizeof(rvcn_dec_feedback_header_t);
+ header->total_size = sizeof(rvcn_dec_feedback_header_t);
+ header->num_buffers = 0;
}
/* flush IB to the hardware */