From 7763e75eead2c99f58bf16845dc4ceed93de1cfc Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 27 Dec 2023 15:34:12 +0200 Subject: [PATCH] anv: move ALLOC_HOST_CACHED_COHERENT as define That way gdb can decode the other flags when looking at the variables. Signed-off-by: Lionel Landwerlin Reviewed-by: Jianxun Zhang Part-of: --- src/intel/vulkan/anv_private.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 2a2706facaf..35611cf6fd3 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -447,11 +447,13 @@ enum anv_bo_alloc_flags { /** Specify whether this BO is internal to the driver */ ANV_BO_ALLOC_INTERNAL = (1 << 19), - - /** Specifies that the BO should be cached and coherent. */ - ANV_BO_ALLOC_HOST_CACHED_COHERENT = (ANV_BO_ALLOC_HOST_COHERENT | ANV_BO_ALLOC_HOST_CACHED), }; +/** Specifies that the BO should be cached and coherent. */ +#define ANV_BO_ALLOC_HOST_CACHED_COHERENT (ANV_BO_ALLOC_HOST_COHERENT | \ + ANV_BO_ALLOC_HOST_CACHED) + + struct anv_bo { const char *name;