summaryrefslogtreecommitdiff
path: root/lib/intel_mocs.h
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2024-03-06 15:04:50 +0000
committerMatthew Auld <matthew.auld@intel.com>2024-03-08 12:20:38 +0000
commitfcc9dc6d10a76078fa77f3446baac9cd23cf491e (patch)
tree2975ac25625a3fed28107561a6445b116b4e0fd8 /lib/intel_mocs.h
parentb2115566eda66e89aec4a1f81598795cd454ab69 (diff)
lib/intel_buf: expose mocs_index
Allow the caller the set the intel_buf.mocs_index as part of the usual _full variants. Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'lib/intel_mocs.h')
-rw-r--r--lib/intel_mocs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/intel_mocs.h b/lib/intel_mocs.h
index a9e075273..b5c79b0e1 100644
--- a/lib/intel_mocs.h
+++ b/lib/intel_mocs.h
@@ -8,6 +8,8 @@
#include <stdint.h>
+#define DEFAULT_MOCS_INDEX ((uint8_t)-1)
+
uint8_t intel_get_wb_mocs_index(int fd);
uint8_t intel_get_uc_mocs_index(int fd);