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:

committed by
Marge Bot

parent
7ac2edd555
commit
802e43a6b5
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user