[Mesa-dev] [PATCH] st/dri: Clear drawable texture_mask in dri2_invalidate_drawable

Marek Olšák maraeo at gmail.com
Thu Jun 9 11:59:04 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>
On Jun 9, 2016 10:26 AM, "Nicolai Hähnle" <nhaehnle at gmail.com> wrote:

> Looks reasonable.
>
> Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> On 09.06.2016 08:44, Michel Dänzer wrote:
>
>> From: Michel Dänzer <michel.daenzer at amd.com>
>>
>> This makes sure that dri_set_tex_buffer2 -> dri_drawable_validate_att
>> will re-create the front left attachment buffer after the drawable got
>> invalidated.
>>
>> Fixes window contents not updating until the window is resized when
>> using DRI2 PRIME.
>>
>> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
>> ---
>>   src/gallium/state_trackers/dri/dri2.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/src/gallium/state_trackers/dri/dri2.c
>> b/src/gallium/state_trackers/dri/dri2.c
>> index 28f8078..c22a8cd 100644
>> --- a/src/gallium/state_trackers/dri/dri2.c
>> +++ b/src/gallium/state_trackers/dri/dri2.c
>> @@ -167,6 +167,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv)
>>
>>      dri2InvalidateDrawable(dPriv);
>>      drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp;
>> +   drawable->texture_mask = 0;
>>
>>      p_atomic_inc(&drawable->base.stamp);
>>   }
>>
>> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160609/c2091dea/attachment.html>


More information about the mesa-dev mailing list