svga: move duplicated code for setting fillmode/flatshade state
authorBrian Paul <brianp@vmware.com>
Wed, 14 Feb 2018 17:37:27 +0000 (09:37 -0800)
committerBrian Paul <brianp@vmware.com>
Thu, 15 Feb 2018 16:05:09 +0000 (09:05 -0700)
commit8b54299c344d9fd35118fab50efa136f8971a7cc
tree8397f9d6d623313abdbc63e64cc2c0c7184a874a
parent072df89a796f549cc0ad90ce3dcbc9ad5c58d892
svga: move duplicated code for setting fillmode/flatshade state

Move the calls to svga_hwtnl_set_fillmode() and svga_hwtnl_set_flatshade()
out of the two retry_draw_*() functions to the svga_draw_vbo() function.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_draw.c