vc4: Add support for line width setting.
authorEric Anholt <eric@anholt.net>
Wed, 24 Sep 2014 21:12:35 +0000 (14:12 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 24 Sep 2014 22:56:39 +0000 (15:56 -0700)
I don't see piglit tests for it, but this should be better than not
emitting it at all.

src/gallium/drivers/vc4/vc4_emit.c
src/gallium/drivers/vc4/vc4_screen.c

index 49f0010e20c08aeecd0249b0d5156e803dd74000..0f533f0aefb7039bfad0ecb813b0407a394ee71e 100644 (file)
@@ -53,6 +53,9 @@ vc4_emit_state(struct pipe_context *pctx)
                 cl_u8(&vc4->bcl, VC4_PACKET_DEPTH_OFFSET);
                 cl_u16(&vc4->bcl, vc4->rasterizer->offset_factor);
                 cl_u16(&vc4->bcl, vc4->rasterizer->offset_units);
+
+                cl_u8(&vc4->bcl, VC4_PACKET_LINE_WIDTH);
+                cl_f(&vc4->bcl, vc4->rasterizer->base.line_width);
         }
 
         if (vc4->dirty & VC4_DIRTY_VIEWPORT) {
index 81a29a5ef2e8387a0c323542ce64dd341ace18aa..4472efdabcaddf46eaecba6e240731a8a0c35392 100644 (file)
@@ -239,6 +239,8 @@ vc4_screen_get_paramf(struct pipe_screen *pscreen, enum pipe_capf param)
         switch (param) {
         case PIPE_CAPF_MAX_LINE_WIDTH:
         case PIPE_CAPF_MAX_LINE_WIDTH_AA:
+                return 32;
+
         case PIPE_CAPF_MAX_POINT_WIDTH:
         case PIPE_CAPF_MAX_POINT_WIDTH_AA:
                 return 8192.0f;