Module: Mesa Branch: main Commit: 860ac5c149812ddabe81725da435ab3b3acd3cca URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=860ac5c149812ddabe81725da435ab3b3acd3cca
Author: Asahi Lina <[email protected]> Date: Sat Feb 25 12:16:00 2023 -0500 asahi: Add readonly BO flag Signed-off-by: Asahi Lina <[email protected]> Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21538> --- src/asahi/lib/agx_bo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/lib/agx_bo.h b/src/asahi/lib/agx_bo.h index d18568a7262..9d3f24831a6 100644 --- a/src/asahi/lib/agx_bo.h +++ b/src/asahi/lib/agx_bo.h @@ -59,6 +59,10 @@ enum agx_bo_flags { * be allocated as private */ AGX_BO_SHAREABLE = 1 << 4, + + /* BO is read-only from the GPU side + */ + AGX_BO_READONLY = 1 << 5, }; struct agx_ptr {
