aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_resource.h
diff options
context:
space:
mode:
authorQiang Yu <[email protected]>2019-06-30 21:44:12 +0800
committerQiang Yu <[email protected]>2019-09-23 09:48:15 +0800
commitafbaed906d7ba89467b177e768c36f29d6053ad0 (patch)
tree2a7bfd5aa0f1cb3f34bf08f350feb4c3c4e487db /src/gallium/drivers/lima/lima_resource.h
parent8278b236b05b2d2f04439e6bc12766315a95869b (diff)
lima: implement EGL_KHR_partial_update
This extension set a damage region for each buffer swap which can be used to reduce buffer reload cost by only feed damage region's tile buffer address for PP. Reviewed-and-Tested-by: Vasily Khoruzhick <[email protected]> Signed-off-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_resource.h')
-rw-r--r--src/gallium/drivers/lima/lima_resource.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_resource.h b/src/gallium/drivers/lima/lima_resource.h
index ba88b0696fe..7e7a9628a86 100644
--- a/src/gallium/drivers/lima/lima_resource.h
+++ b/src/gallium/drivers/lima/lima_resource.h
@@ -38,9 +38,16 @@ struct lima_resource_level {
uint32_t offset;
};
+struct lima_damage_region {
+ struct pipe_scissor_state *region;
+ unsigned num_region;
+ bool aligned;
+};
+
struct lima_resource {
struct pipe_resource base;
+ struct lima_damage_region damage;
struct renderonly_scanout *scanout;
struct lima_bo *bo;
bool tiled;