OSDN Git Service

i965: Actually check every primitive for cut index support.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Aug 2013 21:50:38 +0000 (14:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Sep 2013 18:29:09 +0000 (11:29 -0700)
commit9f7d5870a31bc9fab6c42acba4ae97e4f9bdb2b9
tree277eedfbc8db0227ddc20a3c90bf5b0f7004de4d
parent6b5c802c30ada043ee31cc5e62249ff99bbc865f
i965: Actually check every primitive for cut index support.

can_cut_index_handle_prims() was passed an array of _mesa_prim objects
and a count, and ran a loop for that many iterations.  However, it
treated the array like a pointer, repeatedly checking the first element.

This patch makes it actually check every primitive.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_primitive_restart.c