From: Ilia Mirkin Date: Wed, 31 Dec 2014 07:20:51 +0000 (-0500) Subject: st/mesa: add EXT_polygon_offset_clamp support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc321db75b7a4d2f5b71382bfd61d1eced1905cd;p=mesa.git st/mesa: add EXT_polygon_offset_clamp support Signed-off-by: Ilia Mirkin Reviewed-by: Glenn Kennard Reviewed-by: Roland Scheidegger --- diff --git a/docs/relnotes/10.5.0.html b/docs/relnotes/10.5.0.html index bf932d4a4ae..578db4f2496 100644 --- a/docs/relnotes/10.5.0.html +++ b/docs/relnotes/10.5.0.html @@ -47,7 +47,7 @@ Note: some of the new features are only available with certain drivers.
  • GL_ARB_framebuffer_sRGB on freedreno
  • GL_ARB_texture_rg on freedreno
  • GL_EXT_packed_float on freedreno
  • -
  • GL_EXT_polygon_offset_clamp on i965
  • +
  • GL_EXT_polygon_offset_clamp on i965, nv50, nvc0, r600, radeonsi, llvmpipe
  • GL_EXT_texture_shared_exponent on freedreno
  • GL_EXT_texture_snorm on freedreno
  • diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 606f19a18ef..cceed42c828 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -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; diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 48ed9d203f1..2b5cde28041 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -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 */