diff options
author | Vasily Khoruzhick <[email protected]> | 2019-12-09 18:29:19 -0800 |
---|---|---|
committer | Vasily Khoruzhick <[email protected]> | 2020-01-10 01:13:47 +0000 |
commit | 044da65f52b1de20fce608f83a6313c86d62b5b8 (patch) | |
tree | 9e89308dadb143da12caaa357367acfae20c13de /src/gallium/drivers/lima/lima_resource.c | |
parent | a533d1d4c607543fc1e3ca427eba50e9602f6fe2 (diff) |
lima: add debug flag to disable tiling
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 <[email protected]>
Reviewed-by: Erico Nunes <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_resource.c')
-rw-r--r-- | src/gallium/drivers/lima/lima_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_resource.c b/src/gallium/drivers/lima/lima_resource.c index db116d06a83..27853417852 100644 --- a/src/gallium/drivers/lima/lima_resource.c +++ b/src/gallium/drivers/lima/lima_resource.c @@ -178,7 +178,7 @@ _lima_resource_create_with_modifiers(struct pipe_screen *pscreen, 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; |