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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26822>
This commit is contained in:
Lionel Landwerlin
2023-12-27 15:34:12 +02:00
committed by Marge Bot
parent 3f64ec141e
commit 7763e75eea

View File

@@ -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;