summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_job.h
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-08-12 12:07:08 +0200
committerBoris Brezillon <[email protected]>2019-08-13 14:41:10 +0200
commit65ae86b85422ae0d41624dd56f935d85b0164a13 (patch)
treee86fa41f23987d2044c2132b4bbde3409bd44eb1 /src/gallium/drivers/panfrost/pan_job.h
parent492ffbed63a2a62759224b1c7d45aa7923d8f542 (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_job.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_job.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h
index a5ea5bf41cc..0f559b861a0 100644
--- a/src/gallium/drivers/panfrost/pan_job.h
+++ b/src/gallium/drivers/panfrost/pan_job.h
@@ -168,6 +168,11 @@ panfrost_job_union_scissor(struct panfrost_job *job,
unsigned minx, unsigned miny,
unsigned maxx, unsigned maxy);
+void
+panfrost_job_intersection_scissor(struct panfrost_job *job,
+ unsigned minx, unsigned miny,
+ unsigned maxx, unsigned maxy);
+
/* Scoreboarding */
void