radeonsi: use thread_context::bytes_mapped_limit
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 10 Apr 2020 12:46:17 +0000 (14:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 08:36:04 +0000 (08:36 +0000)
commitdcb1e8fef8ae60877a696a5bca337eba5475085d
tree5272616210d7d6993f506ebff87491ecf4166b4e
parent15cf7d170b3391ebde58f954cd2b90fff35b1ce5
radeonsi: use thread_context::bytes_mapped_limit

Limit the amount of "in-flight" mapping to 1/4 of the total RAM.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2735
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4508>
src/gallium/drivers/radeonsi/si_pipe.c