vbo: ignore primitive restart if FixedIndex is enabled in DrawArrays
authorMarek Olšák <marek.olsak@amd.com>
Sun, 4 Jan 2015 13:27:33 +0000 (14:27 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jan 2015 11:06:42 +0000 (12:06 +0100)
commit8f5d3095211eee609dfd52eee9f64ce8492b956b
tree4d2c69c7b042cdcf87118be54bcd6ddc0f45986e
parent426fd535d9e2812c52dd709f8e5532bae501b3f6
vbo: ignore primitive restart if FixedIndex is enabled in DrawArrays

From GL 4.4 Core profile:

  If both PRIMITIVE_RESTART and PRIMITIVE_RESTART_FIXED_INDEX are
  enabled, the index value determined by PRIMITIVE_RESTART_FIXED_INDEX is
  used. If PRIMITIVE_RESTART_FIXED_INDEX is enabled, primitive restart is not
  performed for array elements transferred by any drawing command not taking a
  type parameter, including all of the *Draw* commands other than *DrawEle-
  ments*.

Cc: 10.2 10.3 10.4 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/vbo/vbo_exec_array.c