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>
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,