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:
@@ -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) {
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user