From: Erico Nunes Date: Sat, 20 Feb 2021 13:24:09 +0000 (+0100) Subject: lima: fix max sampler views X-Git-Tag: upstream/21.2.3~7522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3d47ba0c7596415b896297378ae5de0c4f30359;p=platform%2Fupstream%2Fmesa.git 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: --- 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 */