swr/rast: Fix read-back of render target array index
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 9 Jun 2017 17:57:39 +0000 (12:57 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 16 Jun 2017 21:20:16 +0000 (16:20 -0500)
commit08a466aec0b1baf54a7ca7b0d7d43bb267e01841
tree7583f904921769685bcc816e1c37e04644f23160
parent17cdd1e7964d87c2918469a5f961500ad2b00581
swr/rast: Fix read-back of render target array index

The last FE stage can emit render target array index. Currently we only
check to see if GS is emitting it. Moved the state to BACKEND_STATE and
plumbed the driver to set it.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/binner.cpp
src/gallium/drivers/swr/rasterizer/core/state.h
src/gallium/drivers/swr/swr_shader.cpp
src/gallium/drivers/swr/swr_state.cpp