radeon/uvd: try to place msg/fb buffer into GART
authorChristian König <christian.koenig@amd.com>
Sun, 22 Sep 2013 13:59:17 +0000 (15:59 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 25 Sep 2013 08:59:03 +0000 (10:59 +0200)
This is only supported on NI+, but the kernel takes care of those limitations.

Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_uvd.c

index a8b17e6376e27c27e2cba21c0a6431bc64309e33..382b4107c3db07a112e7f7f08ea50df3b3217d52 100644 (file)
@@ -148,7 +148,7 @@ static void send_msg(struct ruvd_decoder *dec, struct ruvd_msg *msg)
 
        /* and send it to the hardware */
        send_cmd(dec, RUVD_CMD_MSG_BUFFER, buf->cs_handle, 0,
-                RADEON_USAGE_READ, RADEON_DOMAIN_VRAM);
+                RADEON_USAGE_READ, RADEON_DOMAIN_GTT);
 }
 
 /* create a buffer in the winsys */
@@ -794,7 +794,7 @@ static void ruvd_end_frame(struct pipe_video_codec *decoder,
        send_cmd(dec, RUVD_CMD_DECODING_TARGET_BUFFER, dt, 0,
                 RADEON_USAGE_WRITE, RADEON_DOMAIN_VRAM);
        send_cmd(dec, RUVD_CMD_FEEDBACK_BUFFER, msg_fb_buf->cs_handle,
-                0x1000, RADEON_USAGE_WRITE, RADEON_DOMAIN_VRAM);
+                0x1000, RADEON_USAGE_WRITE, RADEON_DOMAIN_GTT);
        set_reg(dec, RUVD_ENGINE_CNTL, 1);
 
        flush(dec);