Revert "minigbm/msm: disable UBWC for virtualization"
This reverts commit 7a1a7dbda3.
BUG=b:243681772
TEST=confirm UBWC usage in arcvm
Cq-Depend: chromium:3900312
Change-Id: I126353bd91b75b7656257da00bc6fdf7d4c17060
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3900553
Reviewed-by: Chia-I Wu <olv@google.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Auto-Submit: Rob Clark <robdclark@chromium.org>
Tested-by: Rob Clark <robdclark@chromium.org>
Commit-Queue: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
8f16db9fc8
commit
99387a7176
1 changed files with 0 additions and 15 deletions
15
msm.c
15
msm.c
|
|
@ -209,21 +209,6 @@ static bool should_avoid_ubwc(void)
|
|||
drv_logi("WARNING: waffle detected, disabling UBWC\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Sommelier relies on implicit modifier, which does not pass host modifier to
|
||||
* zwp_linux_buffer_params_v1_add. Graphics will be broken if UBWC is enabled.
|
||||
* Sommelier shall be fixed to mirror what arc wayland_service does, and then
|
||||
* we can re-enable UBWC here.
|
||||
*
|
||||
* Inherit the trick from crrev/c/2523246 previously used for gtest. The side
|
||||
* effect is all VM guests on msm will revert back to use linear modifier.
|
||||
*
|
||||
* See b/229147702
|
||||
*/
|
||||
if (!dlsym(RTLD_DEFAULT, "cupsFilePrintf")) {
|
||||
drv_logi("WARNING: virtualization detected, disabling UBWC\n");
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue