diff options
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_program.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_program.c b/src/gallium/drivers/freedreno/a6xx/fd6_program.c index a5dd1182dd0..9ff022d5f5c 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_program.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_program.c @@ -664,6 +664,14 @@ setup_stateobj(struct fd_ringbuffer *ring, struct fd_context *ctx, clip_cull_mask >> 4, l.max_loc); } + /* The hw seems to be unhappy if the last geom shader has no outputs. + * Normally you'd at least see gl_Position writes, but if the last + * geom stage simply writes to an SSBO (for ex) and no other outputs, + * insert a dummy varying + */ + if (!l.cnt) + ir3_link_add(&l, 0, regid(0, 0), 0x1, l.max_loc); + /* If we have stream-out, we use the full shader for binning * pass, rather than the optimized binning pass one, so that we * have all the varying outputs available for xfb. So streamout |