diff options
author | Kristian Høgsberg <[email protected]> | 2014-08-08 16:53:53 -0700 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2014-08-15 11:25:25 -0700 |
commit | 5fad83bdf8be62e448dd3d60fa39daca6f1c7c0d (patch) | |
tree | 8aed99f9f2afeeb2a72fee3c0a5f189e399e81f6 /docs/debugging.html | |
parent | 388f02729bbf88ba104f4f8ee1fdf005a240969c (diff) |
mesa: Use _mesa_lock_context_textures in _mesa_GetTexParameterfv()
GetTexParamterfv() doesnt change texture state, so instead of
_mesa_lock_texture() we can use _mesa_lock_context_textures(),
which doesn't increase the texture stamp. With this change,
_mesa_update_state_locked() is now only called from under
_mesa_lock_context_textures(), which is right thing to do. Right now
it's the same mutex, but if we made texture locking more fine grained
locking one day, just locking one texture here would be wrong.
This all ignores the fact that texture locking seem a bit
flaky and broken, but we're trying to not blatantly make it worse.
This change allows us to reliably unlock the context textures in the
dd::UpdateState callback as is necessary for meta color resolves.
Signed-off-by: Kristian Høgsberg <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'docs/debugging.html')
0 files changed, 0 insertions, 0 deletions