Skip to content
Snippets Groups Projects
Commit c5e4d287 authored by Qiang Yu's avatar Qiang Yu Committed by Marge Bot
Browse files

lima: add noheap debug option


Disable using heap buffer when set.

Reviewed-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: default avatarQiang Yu <yuq825@gmail.com>
Tested-by: Marge Bot <!3264>
Part-of: <!3264>
parent b220aec6
No related branches found
No related tags found
No related merge requests found
......@@ -397,6 +397,9 @@ lima_screen_query_info(struct lima_screen *screen)
drmFreeVersion(version);
if (lima_debug & LIMA_DEBUG_NO_GROW_HEAP)
screen->has_growable_heap_buffer = false;
struct drm_lima_get_param param;
memset(&param, 0, sizeof(param));
......@@ -464,6 +467,8 @@ static const struct debug_named_value debug_options[] = {
"print debug info for BO cache" },
{ "notiling", LIMA_DEBUG_NO_TILING,
"don't use tiled buffers" },
{ "nogrowheap", LIMA_DEBUG_NO_GROW_HEAP,
"disable growable heap buffer" },
{ NULL }
};
......
......@@ -40,6 +40,7 @@
#define LIMA_DEBUG_NO_BO_CACHE (1 << 4)
#define LIMA_DEBUG_BO_CACHE (1 << 5)
#define LIMA_DEBUG_NO_TILING (1 << 6)
#define LIMA_DEBUG_NO_GROW_HEAP (1 << 7)
extern uint32_t lima_debug;
extern int lima_ctx_num_plb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment