draw/clip: cleanup viewport index handling code.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Jul 2020 05:29:32 +0000 (15:29 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Jul 2020 21:19:05 +0000 (07:19 +1000)
commit3366171d0ac4c1b19b475f7b72e5dae95a091795
tree32e6ec6a9542721b822c896cc90ae00aaf2b4eee
parent0e7b7c3087026015b293e224f024dc4ba7aecb84
draw/clip: cleanup viewport index handling code.

This moves code around, and adds initial clamping

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5489>
src/gallium/auxiliary/draw/draw_cliptest_tmp.h