mesa: flag ST_NEW_RASTERIZER for !needs_texcoord_semantic if changing FS
This will be required with the next change, which will remove the rasterizer state dependency on _NEW_PROGRAM. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19859>
This commit is contained in:
@@ -335,6 +335,9 @@ update_program(struct gl_context *ctx)
|
||||
dirty |= prev_fp_affected_states;
|
||||
if (ctx->FragmentProgram._Current)
|
||||
dirty |= ctx->FragmentProgram._Current->affected_states;
|
||||
|
||||
if (!ctx->st->needs_texcoord_semantic)
|
||||
dirty |= ST_NEW_RASTERIZER;
|
||||
}
|
||||
|
||||
if (cp_changed) {
|
||||
|
||||
Reference in New Issue
Block a user