Skip to content
Commit e11d9cd9 authored by Boris Brezillon's avatar Boris Brezillon Committed by Dylan Baker
Browse files

gallium: Fix the ->set_damage_region() implementation



BACK_LEFT attachment can be outdated when the user calls
KHR_partial_update() (->lastStamp != ->texture_stamp), leading to a
damage region update on the wrong pipe_resource object.
Let's delay the ->set_damage_region() call until the attachments are
updated when we're in that case.

Reported-by: default avatarCarsten Haitzler <raster@rasterman.com>
Fixes: 492ffbed ("st/dri2: Implement DRI2bufferDamageExtension")
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
(cherry picked from commit b196e1a8)
parent 0ca8b506
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment