lima: adjust pp and gp max const buffer size
authorErico Nunes <nunes.erico@gmail.com>
Fri, 11 Dec 2020 18:58:07 +0000 (19:58 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Dec 2020 01:04:41 +0000 (01:04 +0000)
commit001411774d203007850a157900c9cd9d0307a417
treecfe72e237eec8992ba23952ae81f918045666b17
parent9ed50cba6e8561128a98dcf6ac8a98cef94591aa
lima: adjust pp and gp max const buffer size

According to the mali driver output, the Mali-400 GP provides space for
304 vec4 uniforms, globals and temporary variables.

The Mali-PP supports a uniform table up to size 32768 total.
However, indirect access to an uniform only supports indices up to 8192
(a 2048 vec4 array). Trying to access beyond that currently causes a pp
job timeout with both lima and the mali driver. To prevent indices
bigger than that in application uniforms, limit to 8192 for now.

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/8079>
src/gallium/drivers/lima/lima_screen.c