[Mesa-dev] [PATCH] radeonsi: always initialize max_forced_staging_uploads

Marek Olšák maraeo at gmail.com
Tue Nov 28 16:50:45 UTC 2017


On Mon, Nov 27, 2017 at 2:10 PM, Marek Olšák <maraeo at gmail.com> wrote:
> On Mon, Nov 27, 2017 at 1:02 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
>> On 24.11.2017 22:32, Marek Olšák wrote:
>>>
>>> From: Marek Olšák <marek.olsak at amd.com>
>>>
>>> r600_resource is malloc'd.
>>>
>>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103808
>>
>>
>> Could you please explain how this actually caused the mentioned bug(s)? I
>> would have thought that it only leads to more forced staging uploads, which
>> shouldn't cause rendering corruptions.
>
> Indeed, that is a huge mystery to me.

Most of the corruption goes away if I flush IBs after every command.
This suggests that the staging upload is done in one context while
drawing is done in another context. The solution is to flush all
contexts before BufferData/BufferSubData in Wine.

Marek


More information about the mesa-dev mailing list