Add debug flag to disable tiling. Note that it prevents lima from creating
tiled buffers, but it's still able to import them if modifier is specified
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
int count)
{
struct lima_screen *screen = lima_screen(pscreen);
- bool should_tile = true;
+ bool should_tile = lima_debug & LIMA_DEBUG_NO_TILING ? false : true;
unsigned width, height;
bool should_align_dimensions;
bool has_user_modifiers = true;
"disable BO cache" },
{ "bocache", LIMA_DEBUG_BO_CACHE,
"print debug info for BO cache" },
+ { "notiling", LIMA_DEBUG_NO_TILING,
+ "don't use tiled buffers" },
{ NULL }
};
#define LIMA_DEBUG_SHADERDB (1 << 3)
#define LIMA_DEBUG_NO_BO_CACHE (1 << 4)
#define LIMA_DEBUG_BO_CACHE (1 << 5)
+#define LIMA_DEBUG_NO_TILING (1 << 6)
extern uint32_t lima_debug;
extern int lima_ctx_num_plb;