st/mesa: throttle texture uploads if their memory usage goes beyond a limit
authorMarek Olšák <marek.olsak@amd.com>
Sat, 1 Sep 2018 00:58:10 +0000 (20:58 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 7 Sep 2018 21:59:02 +0000 (17:59 -0400)
commit21ca322e637291b89a445159fc45b8dbf638e6c9
treec0f2417651f7c6dba6c0ec9da1ee6755132e7181
parent9ce2cef68f37a05cd2e4e4128395af38e7be963f
st/mesa: throttle texture uploads if their memory usage goes beyond a limit

This prevents radeonsi from running out of memory. It also increases
texture upload performance by being nice to the kernel memory manager.
src/gallium/auxiliary/util/u_helpers.c
src/gallium/auxiliary/util/u_helpers.h
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h