lima: fix max sampler views
authorErico Nunes <nunes.erico@gmail.com>
Sat, 20 Feb 2021 13:24:09 +0000 (14:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 21 Feb 2021 19:21:45 +0000 (19:21 +0000)
commitf3d47ba0c7596415b896297378ae5de0c4f30359
treeddcd8a98028d66c6951efc5f6a90e66af89ce50b
parent8f339eb0360729ca5717509615039fef8c35d459
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 <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9172>
src/gallium/drivers/lima/lima_screen.c