diff options
author | Leo Liu <[email protected]> | 2017-07-18 09:48:02 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2017-07-25 12:27:09 -0400 |
commit | 82fcf3142f5dd43df530b5544350b957fd43f79f (patch) | |
tree | c1dbe59fe7f63da29572c697777f9ac2772a5d01 /src/gallium/drivers/radeon | |
parent | 8d655263cae8765895feec14ac0cd1ebcfdf6e3f (diff) |
radeon/vcn: move message buffer to vram for now
To workaround an unknown bug.
Signed-off-by: Leo Liu <[email protected]>
Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vcn_dec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index bd93b849db0..a60b969a273 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c @@ -1237,8 +1237,9 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context, unsigned msg_fb_it_size = FB_BUFFER_OFFSET + FB_BUFFER_SIZE; if (have_it(dec)) msg_fb_it_size += IT_SCALING_TABLE_SIZE; + /* use vram to improve performance, workaround an unknown bug */ if (!rvid_create_buffer(dec->screen, &dec->msg_fb_it_buffers[i], - msg_fb_it_size, PIPE_USAGE_STAGING)) { + msg_fb_it_size, PIPE_USAGE_DEFAULT)) { RVID_ERR("Can't allocated message buffers.\n"); goto error; } |