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:
parent
f964881fcc
commit
4f027fbff2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue