freedreno: add gmem_lock
The gmem state is split out now, so it does not require synchronization. But gmem rendering still accesses vsc state from the context. TODO maybe there is a better way? For gen's that don't do vsc resizing, this is probably easier.. but for a6xx there isn't really a great position for more fine grained locking. Maybe it doesn't matter since in practice the lock shouldn't be contended. Signed-off-by:Rob Clark <robdclark@chromium.org> Part-of: <!3503>
- src/gallium/drivers/freedreno/freedreno_context.c 4 additions, 0 deletionssrc/gallium/drivers/freedreno/freedreno_context.c
- src/gallium/drivers/freedreno/freedreno_context.h 10 additions, 0 deletionssrc/gallium/drivers/freedreno/freedreno_context.h
- src/gallium/drivers/freedreno/freedreno_gmem.c 4 additions, 0 deletionssrc/gallium/drivers/freedreno/freedreno_gmem.c