summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2023-12-15 15:45:51 +0000
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:47:23 -0500
commit0bf90a8c223759564964d4a1ecd44608876ab02d (patch)
tree575d2f162e78ce487d1adcf12a2a813317afe547
parentdb35331176f93125cc4bfa0d05283688607200f5 (diff)
downloadlinux-stable-0bf90a8c223759564964d4a1ecd44608876ab02d.tar.gz
linux-stable-0bf90a8c223759564964d4a1ecd44608876ab02d.tar.bz2
linux-stable-0bf90a8c223759564964d4a1ecd44608876ab02d.zip
drm/xe/uapi: Move CPU_CACHING defines before doc
Move those defines to align on the rule used elsewhere in the file which was introduced by commit 4f082f2c3a37 ("drm/xe: Move defines before relevant fields"). Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: José Roberto de Souza <jose.souza@intel.com> Acked-by: Mateusz Naklicki <mateusz.naklicki@intel.com> Signed-off-by: Francois Dugast <francois.dugast@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
-rw-r--r--include/uapi/drm/xe_drm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
index 5240653eeefd..8a69abea0725 100644
--- a/include/uapi/drm/xe_drm.h
+++ b/include/uapi/drm/xe_drm.h
@@ -733,12 +733,12 @@ struct drm_xe_gem_create {
*/
__u32 handle;
+#define DRM_XE_GEM_CPU_CACHING_WB 1
+#define DRM_XE_GEM_CPU_CACHING_WC 2
/**
* @cpu_caching: The CPU caching mode to select for this object. If
* mmaping the object the mode selected here will also be used.
*/
-#define DRM_XE_GEM_CPU_CACHING_WB 1
-#define DRM_XE_GEM_CPU_CACHING_WC 2
__u16 cpu_caching;
/** @pad: MBZ */
__u16 pad[3];