Reduces the memory footprint of the frontend processing by packing
vertices.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
* XXX setup provokingVertex & topologyProvokingVertex */
SWR_FRONTEND_STATE feState = {0};
- /* XXX this value should be minimized based on the shader set */
- feState.vsVertexSize = SWR_VTX_NUM_SLOTS;
+ feState.vsVertexSize =
+ VERTEX_ATTRIB_START_SLOT +
+ + ctx->vs->info.base.num_outputs
+ - (ctx->vs->info.base.writes_position ? 1 : 0);
if (ctx->rasterizer->flatshade_first) {
feState.provokingVertex = {1, 0, 0};