swr/rast: more flexible max attribute slots
authorTim Rowley <timothy.o.rowley@intel.com>
Mon, 10 Apr 2017 16:29:45 +0000 (11:29 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Sat, 29 Apr 2017 00:53:39 +0000 (19:53 -0500)
commita373f1f27a82b91d6753c94d23cec2ac9f21f7b3
treeafe0662d6f643fc7a06a78541c69379541fe17fe
parent54d42cd976902576de93cd8efd8dfaf5a4ce029a
swr/rast: more flexible max attribute slots

Ability to allocate space for an arbitrary number (at compile time)
of positions in the vertex layout.

Removes KNOB_NUM_ATTRIBUTES from knobs.h, replaces the VTX slot
number #defines with the SWR_VTX_SLOTS enum (which contains
replacement for NUM_ATTRIBUTES: SWR_VTX_NUM_SLOTS)

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.cpp
src/gallium/drivers/swr/rasterizer/core/frontend.h
src/gallium/drivers/swr/rasterizer/core/knobs.h
src/gallium/drivers/swr/rasterizer/core/rasterizer.cpp
src/gallium/drivers/swr/rasterizer/core/state.h
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.h
src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp