[Mesa-dev] [Mesa-stable] [PATCH] nvc0: do not clear surfaces bins in the validate function

Samuel Pitoiset samuel.pitoiset at gmail.com
Sun Jun 5 21:29:21 UTC 2016



On 06/05/2016 11:17 PM, Ilia Mirkin wrote:
> On Sun, Jun 5, 2016 at 5:16 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> On 5 June 2016 at 22:13, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>> On 5 June 2016 at 17:56, Samuel Pitoiset <samuel.pitoiset at gmail.com> wrote:
>>>> We should not call nouveau_bufctx_reset() inside a validate function.
>>> This seems to contradict the changes introduced in nvc0_compute.c.
>>> Worth explaining a bit better the dos and don'ts ?
>>>
>> As this is already in master, can you please provide a more
>> elaborate/correct summary for -stable ?
>
> I think it's fine as is.
>
> Do: reset bufctx when setting dirty bit
> Don't: reset bufctx in validate logic, since it's "too late" by then.
> (Not strictly wrong, but just should do it earlier.)
>

And usually, we clear the bins (ie. nouveau_bufctx_reset()) when the 
dirty flag is updated. This doesn't change anything, it's just wrong to 
do it inside the validate function.


More information about the mesa-dev mailing list