summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-05-02 16:26:23 -0400
committerLeo Liu <[email protected]>2017-05-25 11:40:20 -0400
commit949dd66c9ec914cc2b9b6d40a1d1860b6963cba1 (patch)
tree80a201a1a8962466aeb8445790065a7de83daa2e /src/gallium
parent0152a0cf16cf390f62a6fdaac94996ad8cf2757c (diff)
radeon/vcn: add decode message feedback
Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-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 */