[PATCH 2/2] exa: Verify non-null pSrc in mgaDownloadFromScreen()

Alex Deucher alexdeucher at gmail.com
Tue Mar 3 14:07:18 PST 2015


On Tue, Mar 3, 2015 at 3:50 PM, Tormod Volden <lists.tormod at gmail.com> wrote:
> On Tue, Mar 3, 2015 at 9:21 PM, Alex Deucher wrote:
>> On Tue, Mar 3, 2015 at 2:21 PM, Tormod Volden wrote:
>>> On Tue, Mar 3, 2015 at 3:18 AM, Michel Dänzer wrote:
>>>> About patch 1, since mgaDownloadFromScreen doesn't do anything fancier
>>>> than memcpy, you can just remove it altogether and leave
>>>> pExa->DownloadFromScreen NULL. EXA then does basically the same thing
>>>> mgaDownloadFromScreen does.
>>>
>>> Yes, Connor also suggested that. However, I would like in any case to
>>> correct the old code first. Does the "general" EXA also do the
>>> equivalent to QUIESCE_DMA()?
>>>
>>
>> It calls waitMarker before doing sw ops if that is what you are asking.
>
> Thanks. I took a look, they do different things, and QUIESCE_DMA()
> goes into mga_dri.c and places sprinkled with "FIXME what about EXA?".
> Anyway, I think I leave further changes to someone who can test :)

If anything, it's likely to be more correct if you let EXA do it if
there are a bunch of fixme's in the QUIESCE_DMA code.

Alex


More information about the xorg-devel mailing list