mesa/st: only flag pointsize constant uploads if they're needed

now that shaders are guaranteed to have a pointsize export, the only time
the variant using the uploaded constant is needed is when pointsize != 1.0

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15699>
This commit is contained in:
Mike Blumenkrantz 2022-03-31 12:31:29 -04:00
parent f964881fcc
commit 4f027fbff2
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ static void check_program_state( struct st_context *st )
dirty |= ST_NEW_SCISSOR;
}
if (st->lower_point_size && st->ctx->LastVertexStageDirty && !st->ctx->VertexProgram.PointSizeEnabled) {
if (st->lower_point_size && st->ctx->LastVertexStageDirty &&
!st->ctx->VertexProgram.PointSizeEnabled && !st->ctx->PointSizeIsOne) {
if (new_gp) {
st->dirty |= ST_NEW_GS_CONSTANTS;
} else if (new_tep) {