sdm: Allow Skip Validate when Partial Update is disabled
Allow Skip Validate, if the Partial Update feature is not enabled
on Display and surface is getting updated on the updating layer(s).
CRs-Fixed: 2280394
Change-Id: I0524818fb4cbb11dcc8fc993fa7ae536bd555709
diff --git a/sdm/libs/hwc2/hwc_layers.h b/sdm/libs/hwc2/hwc_layers.h
index d72f07f..46e83cb 100644
--- a/sdm/libs/hwc2/hwc_layers.h
+++ b/sdm/libs/hwc2/hwc_layers.h
@@ -107,6 +107,8 @@
bool IsRotationPresent();
bool IsDataSpaceSupported();
static LayerBufferFormat GetSDMFormat(const int32_t &source, const int flags);
+ bool IsSurfaceUpdated() { return surface_updated_; }
+ void SetPartialUpdate(bool enabled) { partial_update_enabled_ = enabled; }
private:
Layer *layer_ = nullptr;
@@ -123,6 +125,8 @@
bool single_buffer_ = false;
int buffer_fd_ = -1;
bool dataspace_supported_ = false;
+ bool partial_update_enabled_ = false;
+ bool surface_updated_ = true;
// Composition requested by client(SF)
HWC2::Composition client_requested_ = HWC2::Composition::Device;
@@ -139,6 +143,7 @@
DisplayError SetIGC(IGC_t source, LayerIGC *target);
uint32_t RoundToStandardFPS(float fps);
void ValidateAndSetCSC(const private_handle_t *handle);
+ void SetDirtyRegions(hwc_region_t surface_damage);
};
struct SortLayersByZ {