[Mesa-dev] [PATCH 17/26] gallium/radeon: disable CMASK on handle export if sharing doesn't allow it

Marek Olšák maraeo at gmail.com
Tue Mar 8 19:35:59 UTC 2016


On Tue, Mar 8, 2016 at 4:41 AM, Michel Dänzer <michel at daenzer.net> wrote:
> On 03.03.2016 01:36, Marek Olšák wrote:
>> From: Marek Olšák <marek.olsak at amd.com>
>>
>> The disabling of CMASK is simple, but notifying all contexts about it is not:
>> - The screen must have a list of all contexts.
>> - Each context must have a monotonic counter that is incremented only when
>>   the screen wants to re-emit framebuffer states.
>> - Each context must check in draw_vbo if the counter has been changed and
>>   re-emit the framebuffer state accordingly.
>
> The list seems a bit overkill. How about having dirty_fb_counter in the
> screen and last_dirty_fb_counter in the context, incrementing the former
> in r600_dirty_all_framebuffer_states and emitting the framebuffer state
> if the two counters don't match?

Thanks. The updated patch is attached. Please review.

Marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gallium-radeon-disable-CMASK-on-handle-export-if-sha.patch
Type: text/x-diff
Size: 6264 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160308/de2fb980/attachment-0001.patch>


More information about the mesa-dev mailing list