diff options
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_gs.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c index 74c6279d648..b762dd6cb57 100644 --- a/src/gallium/auxiliary/draw/draw_gs.c +++ b/src/gallium/auxiliary/draw/draw_gs.c @@ -797,6 +797,10 @@ draw_create_geometry_shader(struct draw_context *draw, else gs->clipdistance_output[1] = i; } + if (gs->info.output_semantic_name[i] == TGSI_SEMANTIC_CULLDIST) { + debug_assert(gs->info.output_semantic_index[i] < Elements(gs->culldistance_output)); + gs->culldistance_output[gs->info.output_semantic_index[i]] = i; + } } gs->machine = draw->gs.tgsi.machine; |