gallium/cso: add unbind mask for cso restore

this code was duplicated in a bunch of places, so now there can just
be a bitmask passed to simplify and consolidate

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12571>
This commit is contained in:
Mike Blumenkrantz
2021-06-07 10:20:38 -04:00
committed by Marge Bot
parent 7ac2edd555
commit 802e43a6b5
10 changed files with 44 additions and 48 deletions

View File

@@ -360,7 +360,7 @@ clear_with_quad(struct gl_context *ctx, unsigned clear_buffers)
}
/* Restore pipe state */
cso_restore_state(cso);
cso_restore_state(cso, 0);
st->dirty |= ST_NEW_VERTEX_ARRAYS;
}