panfrost: Skip blit shader labelling if the buffer has no space
authorIcecream95 <ixn@disroot.org>
Thu, 13 May 2021 21:11:00 +0000 (09:11 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 May 2021 06:39:05 +0000 (06:39 +0000)
commit4da88060d0a3662a579a26748d7e3458c1b4800d
tree4b9fe619191c9126765f96d8319616221f64a574
parent938e52a6e83f2851c7cacbf97c5dfd4e1ff6837d
panfrost: Skip blit shader labelling if the buffer has no space

Fixes stack corruption in dEQP-GLES31.functional.draw_buffers_indexed.
random.max_implementation_draw_buffers.10

Fixes: 8ba2f9f6985 ("panfrost: Create a blitter library to replace the existing preload helpers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10792>
src/panfrost/lib/pan_blitter.c