drm/radeon/kms: Fix caching mode selection for GTT object
authorJerome Glisse <jglisse@redhat.com>
Wed, 29 Jul 2009 16:55:53 +0000 (18:55 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2009 05:14:39 +0000 (15:14 +1000)
GTT object can either be cached,uncached or wc just let core ttm
pick the best mode according to how the bo driver and GTT memory
type was initialized.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_object.c

index dd9ac2fed6d69512f8696294a6ec1f062e22f250..e98cae3bf4a67959dc0b600ddeb9e47c1dac49ca 100644 (file)
@@ -106,7 +106,7 @@ static inline uint32_t radeon_object_flags_from_domain(uint32_t domain)
                flags |= TTM_PL_FLAG_VRAM | TTM_PL_FLAG_WC | TTM_PL_FLAG_UNCACHED;
        }
        if (domain & RADEON_GEM_DOMAIN_GTT) {
-               flags |= TTM_PL_FLAG_TT | TTM_PL_FLAG_WC | TTM_PL_FLAG_UNCACHED;
+               flags |= TTM_PL_FLAG_TT | TTM_PL_MASK_CACHING;
        }
        if (domain & RADEON_GEM_DOMAIN_CPU) {
                flags |= TTM_PL_FLAG_SYSTEM | TTM_PL_MASK_CACHING;