[Mesa-dev] [PATCH] gallium: allow more PIPE_RESOURCE_ driver flags
Marek Olšák
maraeo at gmail.com
Wed Jan 30 19:21:40 UTC 2019
From: Marek Olšák <marek.olsak at amd.com>
radeonsi has 8 and will probably have 9 soon.
---
src/gallium/include/pipe/p_defines.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 867d0cb5d74..1f2a3469cc9 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -480,21 +480,21 @@ enum pipe_flush_flags
#define PIPE_BIND_LINEAR (1 << 21)
/**
* Flags for the driver about resource behaviour:
*/
#define PIPE_RESOURCE_FLAG_MAP_PERSISTENT (1 << 0)
#define PIPE_RESOURCE_FLAG_MAP_COHERENT (1 << 1)
#define PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY (1 << 2)
#define PIPE_RESOURCE_FLAG_SPARSE (1 << 3)
-#define PIPE_RESOURCE_FLAG_DRV_PRIV (1 << 16) /* driver/winsys private */
+#define PIPE_RESOURCE_FLAG_DRV_PRIV (1 << 8) /* driver/winsys private */
#define PIPE_RESOURCE_FLAG_ST_PRIV (1 << 24) /* state-tracker/winsys private */
/**
* Hint about the expected lifecycle of a resource.
* Sorted according to GPU vs CPU access.
*/
enum pipe_resource_usage {
PIPE_USAGE_DEFAULT, /* fast GPU access */
PIPE_USAGE_IMMUTABLE, /* fast GPU access, immutable */
PIPE_USAGE_DYNAMIC, /* uploaded data is used multiple times */
--
2.17.1
More information about the mesa-dev
mailing list