From f6c5c6b9be1a241c095af2da985c25b95ffbaa25 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 6 Feb 2017 14:06:12 -0800 Subject: vc4: Move rasterizer state packing to CSO creation time. This gets our vc4_emit.c size back down a bit: before: 1020 0 0 1020 3fc src/gallium/drivers/vc4/.libs/vc4_emit.o after: 968 0 0 968 3c8 src/gallium/drivers/vc4/.libs/vc4_emit.o --- src/gallium/drivers/vc4/vc4_emit.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/gallium/drivers/vc4/vc4_emit.c') diff --git a/src/gallium/drivers/vc4/vc4_emit.c b/src/gallium/drivers/vc4/vc4_emit.c index 8fb379df5e0..d0a701f17b3 100644 --- a/src/gallium/drivers/vc4/vc4_emit.c +++ b/src/gallium/drivers/vc4/vc4_emit.c @@ -115,20 +115,7 @@ vc4_emit_state(struct pipe_context *pctx) } if (vc4->dirty & VC4_DIRTY_RASTERIZER) { - cl_emit(&job->bcl, DEPTH_OFFSET, depth) { - depth.depth_offset_units = - vc4->rasterizer->offset_units; - depth.depth_offset_factor = - vc4->rasterizer->offset_factor; - } - - cl_emit(&job->bcl, POINT_SIZE, points) { - points.point_size = vc4->rasterizer->point_size; - } - - cl_emit(&job->bcl, LINE_WIDTH, points) { - points.line_width = vc4->rasterizer->base.line_width; - } + cl_emit_prepacked(&job->bcl, &vc4->rasterizer->packed); } if (vc4->dirty & VC4_DIRTY_VIEWPORT) { -- cgit v1.2.3