sdm: Do not allow decimation on UBWC framebuffer

MDP hardware cannot apply decimation on UBWC tiled framebuffer.

CRs-Fixed: 867832

Change-Id: I6f2f37955ac9e2b4a6d7888c146930dd3863f385
This commit is contained in:
Sushil Chauhan
2015-07-09 17:43:21 -07:00
parent 6ee1c93b84
commit ee1fc7e0b0
6 changed files with 45 additions and 14 deletions

View File

@@ -120,5 +120,18 @@ bool Debug::IsScalarDisabled() {
return (value == 1);
}
bool Debug::IsUbwcTiledFrameBuffer() {
int ubwc_disabled = 0;
int ubwc_framebuffer = 0;
debug_.debug_handler_->GetProperty("debug.gralloc.gfx_ubwc_disable", &ubwc_disabled);
if (!ubwc_disabled) {
debug_.debug_handler_->GetProperty("debug.gralloc.enable_fb_ubwc", &ubwc_framebuffer);
}
return (ubwc_framebuffer == 1);
}
} // namespace sdm