From f3d47ba0c7596415b896297378ae5de0c4f30359 Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Sat, 20 Feb 2021 14:24:09 +0100 Subject: [PATCH] lima: fix max sampler views If this is not defined, mesa may not deallocate sampler views, which can result in memory leaks. Just define it to the same as max texture samplers, like other mesa drivers do. Cc: mesa-stable Signed-off-by: Erico Nunes Reviewed-by: Vasily Khoruzhick Part-of: --- src/gallium/drivers/lima/lima_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c index 097c209..fcf27ac 100644 --- a/src/gallium/drivers/lima/lima_screen.c +++ b/src/gallium/drivers/lima/lima_screen.c @@ -248,6 +248,7 @@ get_fragment_shader_param(struct lima_screen *screen, case PIPE_SHADER_CAP_MAX_CONST_BUFFERS: return 1; + case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS: case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: return 16; /* need investigate */ -- 2.7.4