mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
panfrost: Don't allocate empty varying buffer
If the FS doesn't actually read any varyings, there's no point. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11074>
This commit is contained in:
parent
c34b760b9f
commit
e95abff4de
1 changed files with 5 additions and 3 deletions
|
|
@ -2280,9 +2280,11 @@ panfrost_emit_varying_descriptor(struct panfrost_batch *batch,
|
|||
ctx->streamout.targets[i]);
|
||||
}
|
||||
|
||||
panfrost_emit_varyings(batch,
|
||||
&varyings[pan_varying_index(present, PAN_VARY_GENERAL)],
|
||||
stride, vertex_count);
|
||||
if (stride) {
|
||||
panfrost_emit_varyings(batch,
|
||||
&varyings[pan_varying_index(present, PAN_VARY_GENERAL)],
|
||||
stride, vertex_count);
|
||||
}
|
||||
|
||||
/* fp32 vec4 gl_Position */
|
||||
*position = panfrost_emit_varyings(batch,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue