diff options
author | Dave Airlie <airlied@redhat.com> | 2008-08-26 17:33:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-08-26 17:33:46 +1000 |
commit | 4c8e8e0d0bad839cf5aacb22524885e49fe86715 (patch) | |
tree | b0d37af2d264f13155502bfbcf01048011d1df03 /linux-core/drm_objects.h | |
parent | 9afd2659430245c456cf887d47087de047c0aba8 (diff) |
drm: add memory clean flag.
When the mapping is clean this flag will be set. This can be used
by a driver to save migrating and allocating pages for an object
that will first be used in VRAM.
Diffstat (limited to 'linux-core/drm_objects.h')
-rw-r--r-- | linux-core/drm_objects.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-core/drm_objects.h b/linux-core/drm_objects.h index 925b4d67..3eb8b902 100644 --- a/linux-core/drm_objects.h +++ b/linux-core/drm_objects.h @@ -146,6 +146,12 @@ struct drm_fence_arg { #define DRM_BO_FLAG_TILE (1ULL << 15) /* + * Buffer has been mapped or touched since creation + * for VRAM we don't need to migrate, just fill with 0s for non-dirty + */ +#define DRM_BO_FLAG_CLEAN (1ULL << 16) + +/* * Memory type flags that can be or'ed together in the mask, but only * one appears in flags. */ @@ -208,7 +214,6 @@ struct drm_fence_arg { */ #define DRM_BO_HINT_PRESUMED_OFFSET 0x00000010 - #define DRM_BO_MEM_LOCAL 0 #define DRM_BO_MEM_TT 1 #define DRM_BO_MEM_VRAM 2 |