gallium: use PIPE_CONTEXT_* flags instead of ST_CONTEXT_FLAG_*

where PIPE_CONTEXT_* flags are available

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20027>
This commit is contained in:
Marek Olšák
2022-11-27 15:00:57 -05:00
committed by Marge Bot
parent 0122a67c81
commit 9fdb0ce755
5 changed files with 21 additions and 33 deletions
+6 -7
View File
@@ -68,13 +68,9 @@ enum st_profile_type
*/
#define ST_CONTEXT_FLAG_DEBUG (1 << 0)
#define ST_CONTEXT_FLAG_FORWARD_COMPATIBLE (1 << 1)
#define ST_CONTEXT_FLAG_ROBUST_ACCESS (1 << 2)
#define ST_CONTEXT_FLAG_RESET_NOTIFICATION_ENABLED (1 << 3)
#define ST_CONTEXT_FLAG_NO_ERROR (1 << 4)
#define ST_CONTEXT_FLAG_RELEASE_NONE (1 << 5)
#define ST_CONTEXT_FLAG_HIGH_PRIORITY (1 << 6)
#define ST_CONTEXT_FLAG_LOW_PRIORITY (1 << 7)
#define ST_CONTEXT_FLAG_PROTECTED (1 << 8)
#define ST_CONTEXT_FLAG_NO_ERROR (1 << 2)
#define ST_CONTEXT_FLAG_RELEASE_NONE (1 << 3)
/**
* Reasons that context creation might fail.
@@ -252,6 +248,9 @@ struct st_context_attribs
/** Mask of ST_CONTEXT_FLAG_x bits */
unsigned flags;
/** Mask of PIPE_CONTEXT_x bits */
unsigned context_flags;
/**
* The visual of the framebuffers the context will be bound to.
*/