[Mesa-dev] [PATCH 07/17] radeon/vcn: add decode message feedback
Leo Liu
leo.liu at amd.com
Wed May 10 20:15:41 UTC 2017
Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
---
src/gallium/drivers/radeon/radeon_vcn_dec.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index 26d0b65..2c826c2 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 */
@@ -210,7 +214,6 @@ static void send_msg_buf(struct radeon_decoder *dec)
dec->fb = NULL;
dec->it = NULL;
-
if (dec->sessionctx.res)
send_cmd(dec, RDECODE_CMD_SESSION_CONTEXT_BUFFER,
dec->sessionctx.res->buf, 0, RADEON_USAGE_READWRITE,
--
2.7.4
More information about the mesa-dev
mailing list