diff options
author | Roland Scheidegger <[email protected]> | 2016-11-09 05:46:12 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-11-09 05:53:16 +0100 |
commit | 4d5346aaac292213c6875aeb2814ca94b9b8e06e (patch) | |
tree | 6ffea844b957ebde402c51b4fb4e4397735db25b /src/gallium/auxiliary/draw/draw_context.c | |
parent | f037afb701a8df8a646414e986b3561c8a798e05 (diff) |
Revert "draw: use vectorized calculations for fetch"
Trivial. There's some regressions internally, related to overflow
behavior. I'll have to look at it at another time, some interactions
with vsplit/vcache are actually mind-blowing.
This reverts commit 3fa10ffb496cc4e6d1003891cf0381bb5bec2a74.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 0271fe348ea..56abcff5a24 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -787,7 +787,6 @@ draw_set_indexes(struct draw_context *draw, const void *elements, unsigned elem_size, unsigned elem_buffer_space) { - static const unsigned fake_index_buf = 0; assert(elem_size == 0 || elem_size == 1 || elem_size == 2 || @@ -798,10 +797,6 @@ draw_set_indexes(struct draw_context *draw, draw->pt.user.eltMax = elem_buffer_space / elem_size; else draw->pt.user.eltMax = 0; - - if (draw->pt.user.eltMax == 0) { - draw->pt.user.elts = &fake_index_buf; - } } |