rusticl: deal with compute_param returning 0
authorKarol Herbst <git@karolherbst.de>
Sat, 6 May 2023 23:45:22 +0000 (01:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Jul 2023 12:27:35 +0000 (12:27 +0000)
commit0fd1b21db2b222a9afbecdf6a8d8b820c69f9d83
tree64c378a83cfb3c32654962c2bd67195e63caea50
parenta8df5cfa3a66a647b5fe78ae962ec060003dc799
rusticl: deal with compute_param returning 0

Some drivers might return 0 indicating they haven't written any data. But
treating it as 0 for all current `COMPUTE_CAP`s is fine, so no need to
panic at runtime here.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Nora Allen <blackcatgames@protonmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22893>
src/gallium/frontends/rusticl/mesa/pipe/screen.rs