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

Tormod Volden lists.tormod at gmail.com
Tue Mar 3 12:50:05 PST 2015


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 :)

Regards,
Tormod


More information about the xorg-devel mailing list