mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
nvk: Add an NVK_DEBUG=gart flag
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31295>
This commit is contained in:
parent
611b0bb73d
commit
1b4e100779
3 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ enum nvk_debug {
|
|||
|
||||
/* Use the EXT_descriptor_buffer path for all buffer views */
|
||||
NVK_DEBUG_FORCE_EDB_BVIEW = 1ull << 6,
|
||||
|
||||
/* Force all memory allocations to go to GART */
|
||||
NVK_DEBUG_FORCE_GART = 1ull << 7,
|
||||
};
|
||||
|
||||
#endif /* NVK_DEBUG_H */
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ nvk_init_debug_flags(struct nvk_instance *instance)
|
|||
{ "vm", NVK_DEBUG_VM },
|
||||
{ "no_cbuf", NVK_DEBUG_NO_CBUF },
|
||||
{ "edb_bview", NVK_DEBUG_FORCE_EDB_BVIEW },
|
||||
{ "gart", NVK_DEBUG_FORCE_GART },
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,9 @@ nvkmd_nouveau_alloc_tiled_mem(struct nvkmd_dev *_dev,
|
|||
domains |= NOUVEAU_WS_BO_VRAM;
|
||||
}
|
||||
|
||||
if (dev->base.pdev->debug_flags & NVK_DEBUG_FORCE_GART)
|
||||
domains = NOUVEAU_WS_BO_GART;
|
||||
|
||||
/* TODO:
|
||||
*
|
||||
* VRAM maps on Kepler appear to be broken and we don't really know why.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue