draw: bail instead of assert on instance count (v2)
authorDave Airlie <airlied@redhat.com>
Mon, 25 Mar 2019 03:17:31 +0000 (13:17 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 25 Mar 2019 19:16:56 +0000 (05:16 +1000)
commitd3836510d21baf427f84fbd11821f91c63d0ea18
treea00888cec304b51e1c1ec772d598b535f28bebbf
parent382401aab75d7f4962705868fdf9099d14043472
draw: bail instead of assert on instance count (v2)

With indirect rendering it's fine to set the instance count
parameter to 0, and expect the rendering to be ignored.

Fixes assert in KHR-GLES31.core.compute_shader.pipeline-gen-draw-commands
on softpipe

v2: return earlier before changing fpstate

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pt.c