google / google/android-riscv64

Wrong color/color shift with --gpu_mode="guest_swiftshader"

Open
#143 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
254
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Hi @enh-google and all,

After the Android SIG meeting last week,
I tried to construct a clean sync of the latest tip-of-tree.

Yet I still have a weird wrong color with guest_swiftshader on the VNC client:

![SwiftShader image output](https://github.com/google/android-riscv64/assets/7066711/60e4886b-f990-4258-b7f2-cf005f787648)

With some testing, I suspect there is a color plate issue or some sort.
The color shift pattern looks like : blue-> green, green -> blue, blue->red.

My command line is :
"launch_cvd -cpus=4 --memory_mb=8192 --resume=false --gpu_mode="guest_swiftshader" --console=true --start_webrtc=true"

However, by using tools piping surfaceflinger directly, such as `scrcpy` / `screenrecord --output-format=h264 -`) the output is correct:
![piping_surfaceflinger](https://github.com/google/android-riscv64/assets/7066711/984db827-c86c-414b-a0b6-e07cae3b0041)

With a whim, I tried to switch the QEMU to my fresh build from QEMU upstream main.
The problem remains.

So, to sum up, there seems to be something wrong which resides between the QEMU vnc output buffer and the layers beyond VNC.

Is there anyone encountering the same problem ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.