st/mesa: add EXT_polygon_offset_clamp support
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Dec 2014 07:20:51 +0000 (02:20 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 3 Feb 2015 01:44:22 +0000 (20:44 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
docs/relnotes/10.5.0.html
src/mesa/state_tracker/st_atom_rasterizer.c
src/mesa/state_tracker/st_extensions.c

index bf932d4a4ae199349e5004d88ab5ec277065e36d..578db4f2496e74d8cbea6ce602b246db72242692 100644 (file)
@@ -47,7 +47,7 @@ Note: some of the new features are only available with certain drivers.
 <li>GL_ARB_framebuffer_sRGB on freedreno</li>
 <li>GL_ARB_texture_rg on freedreno</li>
 <li>GL_EXT_packed_float on freedreno</li>
-<li>GL_EXT_polygon_offset_clamp on i965</li>
+<li>GL_EXT_polygon_offset_clamp on i965, nv50, nvc0, r600, radeonsi, llvmpipe</li>
 <li>GL_EXT_texture_shared_exponent on freedreno</li>
 <li>GL_EXT_texture_snorm on freedreno</li>
 </ul>
index 606f19a18efdf669f6a228a5f5654cdf0da264e9..cceed42c828b8d2cefd7815b9b45aa4369dd5642 100644 (file)
@@ -155,6 +155,7 @@ static void update_raster_state( struct st_context *st )
       raster->offset_tri = ctx->Polygon.OffsetFill;
       raster->offset_units = ctx->Polygon.OffsetUnits;
       raster->offset_scale = ctx->Polygon.OffsetFactor;
+      raster->offset_clamp = ctx->Polygon.OffsetClamp;
    }
 
    raster->poly_smooth = ctx->Polygon.SmoothFlag;
index 48ed9d203f1fca51fa4da686177ba8f2a8984f5b..2b5cde28041af84b7663a7357069eacbe4369b2e 100644 (file)
@@ -464,6 +464,7 @@ void st_init_extensions(struct pipe_screen *screen,
       { o(ARB_conditional_render_inverted),  PIPE_CAP_CONDITIONAL_RENDER_INVERTED      },
       { o(ARB_texture_view),                 PIPE_CAP_SAMPLER_VIEW_TARGET              },
       { o(ARB_clip_control),                 PIPE_CAP_CLIP_HALFZ                       },
+      { o(EXT_polygon_offset_clamp),         PIPE_CAP_POLYGON_OFFSET_CLAMP             },
    };
 
    /* Required: render target and sampler support */