radeonsi: don't call of u_prims_for_vertices for patches and rectangles
authorMarek Olšák <marek.olsak@amd.com>
Wed, 9 Dec 2015 21:14:32 +0000 (22:14 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 11 Dec 2015 14:25:12 +0000 (15:25 +0100)
commit0f9519b938d78ac55e8e5fdad5727a79baf18d42
tree726096f9a9fd7aea1ac7ea02af6d31bea72dc98d
parent51603af3901b2e401d2009ec27b99996fc9ccffb
radeonsi: don't call of u_prims_for_vertices for patches and rectangles

Both caused a crash due to a division by zero in that function.
This is an alternative fix.

Cc: 11.0 11.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/drivers/radeonsi/si_state_draw.c