gallium/radeon: fix VDPAU breakage, need VRAM with WC
authorMarek Olšák <marek.olsak@amd.com>
Tue, 4 Jul 2017 23:14:03 +0000 (01:14 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Jul 2017 23:14:48 +0000 (01:14 +0200)
src/gallium/drivers/radeon/radeon_video.c

index c7ad7f7a3b4455460fa2aecc565d789a392b59ee..f7a1c4743d53d22efd08f8f2729ea8c864bc58a3 100644 (file)
@@ -203,7 +203,8 @@ void rvid_join_surfaces(struct r600_common_context *rctx,
        /* TODO: 2D tiling workaround */
        alignment *= 2;
 
-       pb = ws->buffer_create(ws, size, alignment, RADEON_DOMAIN_VRAM, 0);
+       pb = ws->buffer_create(ws, size, alignment, RADEON_DOMAIN_VRAM,
+                              RADEON_FLAG_GTT_WC);
        if (!pb)
                return;