mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nouveau/winsys: Add a NOUVEAU_WS_BO_COHERENT flag
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33959>
This commit is contained in:
parent
72c9256d8f
commit
dd53232667
2 changed files with 6 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ nouveau_ws_bo_new_tiled_locked(struct nouveau_ws_device *dev,
|
|||
if (flags & NOUVEAU_WS_BO_NO_SHARE)
|
||||
req.info.domain |= NOUVEAU_GEM_DOMAIN_NO_SHARE;
|
||||
|
||||
if (flags & NOUVEAU_WS_BO_COHERENT)
|
||||
req.info.domain |= NOUVEAU_GEM_DOMAIN_COHERENT;
|
||||
|
||||
req.info.tile_flags = (uint32_t)pte_kind << 8;
|
||||
req.info.tile_mode = tile_mode;
|
||||
|
||||
|
|
@ -195,6 +198,8 @@ nouveau_ws_bo_from_dma_buf_locked(struct nouveau_ws_device *dev, int fd)
|
|||
flags |= NOUVEAU_WS_BO_VRAM;
|
||||
if (info.domain & NOUVEAU_GEM_DOMAIN_GART)
|
||||
flags |= NOUVEAU_WS_BO_GART;
|
||||
if (info.domain & NOUVEAU_GEM_DOMAIN_COHERENT)
|
||||
flags |= NOUVEAU_WS_BO_COHERENT;
|
||||
if (info.map_handle)
|
||||
flags |= NOUVEAU_WS_BO_MAP;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ enum nouveau_ws_bo_flags {
|
|||
NOUVEAU_WS_BO_GART = 1 << 1,
|
||||
NOUVEAU_WS_BO_MAP = 1 << 2,
|
||||
NOUVEAU_WS_BO_NO_SHARE = 1 << 3,
|
||||
NOUVEAU_WS_BO_COHERENT = 1 << 4,
|
||||
};
|
||||
|
||||
enum nouveau_ws_bo_map_flags {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue