[PATCH xserver 1/2] modesetting: Fix reverse prime partial update issues on secondary GPU outputs
Michel Dänzer
michel at daenzer.net
Tue Sep 20 01:24:18 UTC 2016
On 17/09/16 01:38 AM, Eric Anholt wrote:
> Keith Packard <keithp at keithp.com> writes:
>> Hans de Goede <hdegoede at redhat.com> writes:
>>
>>> So it looks like we really need glFinish to ensure proper ordering here
>>> (and I've just deleted the v2 of this patchset with flush with I had
>>> prepared).
>>
>> If you need glFinish, then your drivers are broken. glFlush and suitable
>> fences provides sufficient information to allow for synchronization
>> between operations without also requiring waiting for the hardware to
>> finish. It's a difference between getting things into the hardware
>> queues in the right order and waiting for those hardware queues to
>> drain.
>
> glFlush by the spec does provide any guarantees that things have made it
> to the kernel. We have just assumed that, but I think the Radeon driver
> may be violating that assumption these days.
No, it doesn't. It only uses the separate command submission thread for
internal flushes, e.g. when running out of space for the GPU command
stream. glFlush still results in a synchronous flush.
Hans, which drivers were you seeing the wrong order of operations with?
I assume you were testing with patch 2 of the series applied?
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160920/585d4dac/attachment.sig>
More information about the xorg-devel
mailing list