diff options
author | Boris Brezillon <[email protected]> | 2019-08-12 12:07:08 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-08-13 14:41:10 +0200 |
commit | 65ae86b85422ae0d41624dd56f935d85b0164a13 (patch) | |
tree | e86fa41f23987d2044c2132b4bbde3409bd44eb1 /src/gallium/drivers/panfrost/pan_screen.c | |
parent | 492ffbed63a2a62759224b1c7d45aa7923d8f542 (diff) |
panfrost: Add support for KHR_partial_update()
Implement ->set_damage_region() region to support partial updates.
This is a dummy implementation in that it does not try to merge
damage rects. It also does not deal with distinct regions and instead
pick the largest quad as the only damage rect and generate up to 4
reload rects out of it (the left/right/top/bottom regions surrounding
the biggest damage rect).
We also do not try to reduce the number of draws by passing all quad
vertices to the blit request (would require extending u_blitter)
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 510828ce555..d56897729a3 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -659,6 +659,7 @@ panfrost_create_screen(int fd, struct renderonly *ro) screen->base.get_compiler_options = panfrost_screen_get_compiler_options; screen->base.fence_reference = panfrost_fence_reference; screen->base.fence_finish = panfrost_fence_finish; + screen->base.set_damage_region = panfrost_resource_set_damage_region; screen->last_fragment_flushed = true; screen->last_job = NULL; |