diff options
author | Dave Airlie <[email protected]> | 2016-05-13 15:42:19 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-05-23 11:03:40 +1000 |
commit | d17062a40e16454a15aa037a4d1d9e9562cedd46 (patch) | |
tree | a672ea54c162210a965561036258458bcfd7a1dc /src/gallium/auxiliary/draw/draw_gs.c | |
parent | bddb3b5375899e99e96d499a20083d6c95486a6f (diff) |
draw: stop using CULLDIST semantic.
The way the HW works doesn't really fit with having
two semantics for this.
The GLSL compiler emits 2 vec4s and two properties,
this makes draw use those instead of CULLDIST semantics.
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_gs.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c index 6cf8846627b..18af1d90667 100644 --- a/src/gallium/auxiliary/draw/draw_gs.c +++ b/src/gallium/auxiliary/draw/draw_gs.c @@ -803,12 +803,7 @@ draw_create_geometry_shader(struct draw_context *draw, if (gs->info.output_semantic_name[i] == TGSI_SEMANTIC_CLIPDIST) { debug_assert(gs->info.output_semantic_index[i] < PIPE_MAX_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT); - gs->clipdistance_output[gs->info.output_semantic_index[i]] = i; - } - if (gs->info.output_semantic_name[i] == TGSI_SEMANTIC_CULLDIST) { - debug_assert(gs->info.output_semantic_index[i] < - PIPE_MAX_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT); - gs->culldistance_output[gs->info.output_semantic_index[i]] = i; + gs->ccdistance_output[gs->info.output_semantic_index[i]] = i; } } |