mesa/st: drop poly stipple driver state bit

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261>
This commit is contained in:
Dave Airlie 2021-12-20 12:43:37 +10:00 committed by Marge Bot
parent 784ced98f0
commit 562f01fbc7
4 changed files with 3 additions and 13 deletions

View file

@ -979,10 +979,7 @@ _mesa_PopAttrib(void)
if (mask & GL_POLYGON_STIPPLE_BIT) {
memcpy(ctx->PolygonStipple, attr->PolygonStipple, 32*sizeof(GLuint));
if (ctx->DriverFlags.NewPolygonStipple)
ctx->NewDriverState |= ctx->DriverFlags.NewPolygonStipple;
else
ctx->NewState |= _NEW_POLYGONSTIPPLE;
ctx->NewDriverState |= ST_NEW_POLY_STIPPLE;
}
if (mask & GL_SCISSOR_BIT) {

View file

@ -4842,9 +4842,6 @@ struct gl_driver_flags
/** gl_context::Color::ClampFragmentColor */
uint64_t NewFragClamp;
/** gl_context::PolygonStipple */
uint64_t NewPolygonStipple;
/** Shader constants (uniforms, program parameters, state constants) */
uint64_t NewShaderConstants[MESA_SHADER_STAGES];

View file

@ -254,10 +254,8 @@ _mesa_PolygonStipple(const GLubyte *pattern)
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glPolygonStipple\n");
FLUSH_VERTICES(ctx, ctx->DriverFlags.NewPolygonStipple ? 0 :
_NEW_POLYGONSTIPPLE,
GL_POLYGON_STIPPLE_BIT);
ctx->NewDriverState |= ctx->DriverFlags.NewPolygonStipple;
FLUSH_VERTICES(ctx, 0, GL_POLYGON_STIPPLE_BIT);
ctx->NewDriverState |= ST_NEW_POLY_STIPPLE;
pattern = _mesa_map_validate_pbo_source(ctx, 2,
&ctx->Unpack, 32, 32, 1,

View file

@ -504,8 +504,6 @@ st_init_driver_flags(struct st_context *st)
else
f->NewClipPlaneEnable = ST_NEW_RASTERIZER;
f->NewPolygonStipple = ST_NEW_POLY_STIPPLE;
if (st->emulate_gl_clamp)
f->NewSamplersWithClamp = ST_NEW_SAMPLERS |
ST_NEW_VS_STATE | ST_NEW_TCS_STATE |