radeonsi: don't assume ctx is always a threaded_context
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 16 Apr 2020 12:52:29 +0000 (14:52 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 17 Apr 2020 09:36:20 +0000 (11:36 +0200)
commit8521acd660764973940fbdc2c85334670d620b45
treed918dfb7aac6d08341df34a01d4fce012ba8bb96
parent791134658e30ed843acd68d39b06156563017d15
radeonsi: don't assume ctx is always a threaded_context

Fixes: dcb1e8fef8a ("radeonsi: use thread_context::bytes_mapped_limit")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4587>
src/gallium/drivers/radeonsi/si_pipe.c