Do not require mutability when operating on Device#343
Conversation
edd9802 to
b7044c2
Compare
|
It's possible (but I have not checked) that we use |
|
Wouldn't that be possible by simply making sure that |
Not really if it would return types that would refer to lifetime of &mut, but that's not the case here so we only need to check if it's sound from multi threaded perspective. I think most stuff in surfman is not send/sync anyway (because of pointers) so this PR should be OK (I only did a quick glance). |
Yeah, at least on macOS, |
No backend needs this to be mutable, so we can remove the mutability qualifier from all implementations. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
b7044c2 to
1791062
Compare
|
It's hard to see how removing unnecessary mutability qualifiers would cause the tests to start failing. I suspect that CI might be broken, unless I'm missing something here. |
|
Yes, CI is flaky, but we are currently having trouble with mac13 burn out so: #344 |
No backend needs this to be mutable, so we can remove the mutability
qualifier from all implementations.
Signed-off-by: Martin Robinson mrobinson@igalia.com