swr/rast: Start to remove hardcoded clipcull_dist vertex attrib slot
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 22 Aug 2017 21:42:57 +0000 (16:42 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 13 Sep 2017 15:09:11 +0000 (10:09 -0500)
commit5471f65976f39299b9fec7e98fd3b122fa86b499
treef237b8adc81e985165db3a3745fb546545429d0f
parent966997269278d5eeeb6baf7d70fb99df0038b081
swr/rast: Start to remove hardcoded clipcull_dist vertex attrib slot

Add new field in SWR_BACKEND_STATE::vertexClipCullOffset to specify the
start of the clip/cull section of the vertex header.  Removed use of
hardcoded slot from binner.

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