Re: [Mesa-dev] [PATCH RFC 1/2] dri: Let drivers reset the damage region

2019-08-29 Thread Boris Brezillon
On Thu, 29 Aug 2019 13:54:15 +0200 Boris Brezillon wrote: > dri2_set_damage_region() must call st_validate_state(UPDATE_FRAMEBUFFER) > to make sure the BACK_LEFT attachment is up-to-date. > Problem is, dri2_swap_buffers_xxx() functions are actually targeting > the old backbuffer when they call ->

[Mesa-dev] [PATCH RFC 1/2] dri: Let drivers reset the damage region

2019-08-29 Thread Boris Brezillon
dri2_set_damage_region() must call st_validate_state(UPDATE_FRAMEBUFFER) to make sure the BACK_LEFT attachment is up-to-date. Problem is, dri2_swap_buffers_xxx() functions are actually targeting the old backbuffer when they call ->set_damage_region(0, NULL), and more importantly, they are not expec