+14
−10
Loading
Sometimes the clip state is thrashed when we need to temporarily override clipping to disable it. However, in this case, the clip mask itself remains unchanged. The current invalidation scheme doesn't discern between generation of the clip mask itself and setting the clip state for the shader, leading to unnecessary regeneration of the clip mask. This code just tries to discern when this is happening so we can refresh the clip state without having to regenerate the clip mask unless truly necessary. Differential Revision: https://phabricator.services.mozilla.com/D157048