panfrost: Fix off-by-one in varying count assert
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 27 Sep 2021 20:51:32 +0000 (16:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 Oct 2021 21:13:52 +0000 (21:13 +0000)
commit9c8311b737935e6adcab25b16808da2ae5548288
tree31b14a9d4fd6c97043d169c31a732f1a6f0af11f
parent00b05290613cedf487c74cbbb661f959c0efd6fc
panfrost: Fix off-by-one in varying count assert

We want to assert that the number of varyings (the count) is at most the
the maximum count. This is <=, not <, with the assertion previously
failing for exactly the maximum.

Fixes: 2c2cf0ecfe6 ("panfrost: Streamline varying linking code")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13070>
src/gallium/drivers/panfrost/pan_cmdstream.c