draw: don't set start_instance and instance id for pt emit
authorRoland Scheidegger <sroland@vmware.com>
Tue, 15 Dec 2015 17:13:28 +0000 (18:13 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 16 Dec 2015 02:55:14 +0000 (03:55 +0100)
commit13c0b1c7808dac7e84c9b3e1d2079f70bb0ade35
tree36fdc3cc439fc4c32d789eb15e024f4c2a9a21a2
parentd7cb1634d2819f6ac2586afe98d80f563e5db7c8
draw: don't set start_instance and instance id for pt emit

This just adds confusion, these parameters are used when fetching vertices
by translate, but certainly not when emitting hw vertices for drivers, they
make no sense there (setting them has no consequences otherwise since there
won't be any elements with instance_divisor set). So just set them to 0 (the
draw_pipe_vbuf code for emitting vertices when the draw pipeline is run
already does exactly that).
Also while here do some whitespace cleanup.

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