swr: fix range computation for instanced client-side arrays
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 26 Nov 2016 22:11:50 +0000 (17:11 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Dec 2016 01:35:33 +0000 (20:35 -0500)
commit632c11e8570f040ed089ab8755f02aac8c458de7
treee04fb1a9d2dc8f3ccb0fa95752b41aac30503bd3
parent3b736acf1b707d3c6c6e6875400409f91ef9e1ac
swr: fix range computation for instanced client-side arrays

We need to take the instance divisor and number of instances into
account for instanced client-side arrays, rather than the vertex
parameters.

Loosely based on the comparable nvc0 logic.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_state.cpp
src/gallium/drivers/swr/swr_state.h