v3d: we always have at least one output segment
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 8 Oct 2019 11:48:00 +0000 (13:48 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 16 Dec 2019 07:42:37 +0000 (08:42 +0100)
commita07d70c54bae60be0c549d2a6ece509ed29432f8
tree795df6044bd5752bf1c064caf0fb54ce6ff94ffc
parent76fc8c8bb1979122af40ed143fed726050b293b9
v3d: we always have at least one output segment

If we program an output size of 0 the simulator asserts. This was
not a problem until now because our VS would always have to
emit fixed function outputs, however, now that it can be paired
with a GS we can end up with a VS shader that no longer emits
any outputs.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/broadcom/compiler/v3d_nir_lower_io.c