linux-surface / surface-pro-x

Tracking and meta repository for Surface Pro X support.
81 stars 6 forks source link

drm/msm: a680: Properly Initialize UBWC #6

Open qzed opened 2 years ago

qzed commented 2 years ago

The current UBWC configuration seems to be incorrect and causes problems where textures seem to be garbled up. One workaround is running programs with FD_MESA_DEBUG=noubwc. Another workaround (which we currently employ) is not advertising support for compressed textures (see https://github.com/linux-surface/kernel/commit/c78e021aa636c91a4428f2f3b1ec6bd59da92b28). To properly fix this, we should figure out the required UBWC configuration (e.g. via the Windows driver) and set it accordingly.

qzed commented 2 years ago

May be relevant: https://git.codelinaro.org/clo/la/kernel/msm-5.10/-/blob/b7cc67a6265a48d8381520acf58c0e0ff705cfac/drivers/gpu/msm/adreno_a6xx.c#L699-711.

gus33000 commented 2 years ago

Hello!

Could you please post a picture showing how the garbled textures look like? We're currently trying to figure out a similar sounding issue but for a project that does the opposite as yours (Windows on SM8150) and this sounds very similar to what we're observing so far on here, but in reverse as we're making use of SC8180X GPU driver code on SM8150.

Thanks in advance for your time!

qzed commented 2 years ago

2022-06-22-132716