panfrost: Fix vertex image attribute overrun

Images take a continuation record, don't scribble zeroes over.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Fixes: dc85f65e05 ("panfrost: emit shader image attribute descriptors")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
Alyssa Rosenzweig
2021-06-02 15:45:51 -04:00
committed by Marge Bot
parent a5ec1e7f75
commit 3525ad7c45
2 changed files with 1 additions and 3 deletions
@@ -1,2 +0,0 @@
dEQP-GLES31.functional.layout_binding.image.image2d.vertex_binding_max_array,Fail
dEQP-GLES31.functional.layout_binding.image.image3d.vertex_binding_max_array,Fail
+1 -1
View File
@@ -1796,7 +1796,7 @@ panfrost_emit_vertex_data(struct panfrost_batch *batch,
k = ALIGN_POT(k, 2);
emit_image_attribs(ctx, PIPE_SHADER_VERTEX, out + so->num_elements, k);
emit_image_bufs(batch, PIPE_SHADER_VERTEX, bufs + k, k);
k += util_last_bit(ctx->image_mask[PIPE_SHADER_VERTEX]);
k += (util_last_bit(ctx->image_mask[PIPE_SHADER_VERTEX]) * 2);
/* We need an empty attrib buf to stop the prefetching on Bifrost */
if (pan_is_bifrost(dev))