st/mesa: drop the lowering of quad strips to triangle strips
authorMarek Olšák <marek.olsak@amd.com>
Mon, 10 Mar 2014 15:27:21 +0000 (16:27 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 20 Mar 2014 23:50:53 +0000 (00:50 +0100)
commite5f6b6d0feb9b9ad7132d5f236959ef088237347
tree22becdf584be509e51fa12e8489fba8c40403e2b
parent2706448a10c8b91fa8a96e46a8e9f1bf513e3ab8
st/mesa: drop the lowering of quad strips to triangle strips

This fallback to triangle strips is silly and should be done in drivers
if they need it.

This should fix the case when quad strips are used with flatshading that is
enabled by the "flat" GLSL varying modifier. It also fixes primitive restart
for quad strips.

This fixes piglit:
  NV_primitive_restart/primitive-restart-draw-mode-quad_strip

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_draw.c