Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifact in rendering on specific hardware. #6340

Open
D3lta-2-1 opened this issue Sep 29, 2024 · 0 comments
Open

Artifact in rendering on specific hardware. #6340

D3lta-2-1 opened this issue Sep 29, 2024 · 0 comments

Comments

@D3lta-2-1
Copy link

Description
Image quality is degraded on some devices and seams to be incorrect.

Reproduction steps
I was doing a quick and dirty chess project to test wgpu on android devices. A release and the source code are available.

Expected vs observed behavior
I believe examples are better than a thousand words. I put each device name with a screenshot of the rendered picture.

  • window 11 (rtx 3060ti)
    window_build

  • Pixel 7 pro (ARM Mali G710)
    pixel 7 pro

Both window and the pixel 7 pro gave the excepted rendered pictures. But on snapdragon devices, It's not the case.

  • Samsung s23 (snapdragon 8 gen 2, Adreno 740)
    s23

  • Xiaomi Poco F5 (snapdragon 7+ gen 2, Adreno 725)
    photo

Additional information from my phone (the Poco F5)

12635 11960 D AppScoutStateMachine: 12635-ScoutStateMachinecreated
12635 12635 I Perf    : Connecting to perf service.
12635 12635 V GraphicsEnvironment: Currently set values for:
12635 12635 V GraphicsEnvironment:   angle_gl_driver_selection_pkgs=[]
12635 12635 V GraphicsEnvironment:   angle_gl_driver_selection_values=[]
12635 12635 V GraphicsEnvironment: ANGLE GameManagerService for com.example.chess: false
12635 12635 V GraphicsEnvironment: com.example.chess is not listed in per-application setting
12635 12635 V GraphicsEnvironment: App is not on the allowlist for updatable production driver.
12635 12635 I ForceDarkHelperStubImpl: initialize for com.example.chess , ForceDarkAppConfig: null
12635 12635 D OpenGLRenderer: JNI_OnLoad success
12635 12635 I MiuiForceDarkConfig: setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0
12635 11987 W libc    : Access denied finding property "vendor.migl.debug"
12635 11987 I libMiGL : EnableDR: 0
12635 12635 D DecorView[]: getWindowModeFromSystem  windowmode is 1
12635 12635 W libc    : Access denied finding property "ro.vendor.df.effect.conflict"
12635 12635 W m.example.chess: type=1400 audit(0.0:3931): avc:  denied  { read } for  name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=430 scontext=u:r:untrusted_app_32:s0:c165,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 app=com.example.chess
12635 12635 D ScrollerOptimizationManager: registerConfigChangedListener
12635 12635 I IconCustomizer: load icon config path M3.56995 50.0001C3.56995 24.3575 24.3574 3.57007 49.9999 3.57007V3.57007C75.6425 3.57007 96.4299 24.3575 96.4299 50.0001V50.0001C96.4299 75.6426 75.6425 96.4301 49.9999 96.4301V96.4301C24.3574 96.4301 3.56995 75.6426 3.56995 50.0001V50.0001Z, valid rect RectF(3.56995, 3.57007, 96.4299, 96.4301), isFullMask false
12635 12635 W IconCustomizer: getCustomizedIconW 184
12635 12004 D vulkan  : searching for layers in '/data/app/~~nH2cSAgHwfiN8BpCPr1ybg==/com.example.chess-EHfDzLo7GkvogYnjedfdbw==/lib/arm64'
12635 12004 D vulkan  : searching for layers in '/data/app/~~nH2cSAgHwfiN8BpCPr1ybg==/com.example.chess-EHfDzLo7GkvogYnjedfdbw==/base.apk!/lib/arm64-v8a'
12635 12004 I AdrenoVK-0: ===== BEGIN DUMP OF OVERRIDDEN SETTINGS =====
12635 12004 I AdrenoVK-0: ===== END DUMP OF OVERRIDDEN SETTINGS =====
12635 12004 I AdrenoVK-0: QUALCOMM build          : 8f5499ec14, Ie6ef1a0a80
12635 12004 I AdrenoVK-0: Build Date              : 07/14/23
12635 12004 I AdrenoVK-0: Shader Compiler Version : EV031.36.08.24
12635 12004 I AdrenoVK-0: Local Branch            :
12635 12004 I AdrenoVK-0: Remote Branch           : refs/tags/AU_LINUX_ANDROID_LA.VENDOR.1.0.11.00.00.766.892
12635 12004 I AdrenoVK-0: Remote Branch           : NONE
12635 12004 I AdrenoVK-0: Reconstruct Branch      : NOTHING
12635 12004 I AdrenoVK-0: Build Config            : S P 12.1.1 AArch64
12635 12004 I AdrenoVK-0: Driver Path             : /vendor/lib64/hw/vulkan.adreno.so
12635 12004 I AdrenoVK-0: Driver Version          : 0615.73
12635 12004 I AdrenoVK-0: PFP                     : 0x01730158
12635 12004 I AdrenoVK-0: ME                      : 0x00000000
12635 12004 I AdrenoVK-0: Application Name    : wgpu
12635 12004 I AdrenoVK-0: Application Version : 0x00000001
12635 12004 I AdrenoVK-0: Engine Name         : wgpu-hal
12635 12004 I AdrenoVK-0: Engine Version      : 0x00000002
12635 12004 I AdrenoVK-0: Api Version         : 0x00403000
12635 12635 D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10421; state: ENABLED
12635 12635 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10421; state: DISABLED
12635 12016 W ziparchive: Unable to open '/system/framework/QXPerformance.dm': No such file or directory
12635 12016 W ziparchive: Unable to open '/system/framework/QXPerformance.dm': No such file or directory
--------- beginning of systeme

then this error show in loop

12635 12635 D VRI[NativeActivity]: vri.reportNextDraw android.view.ViewRootImpl.performTraversals:4293 android.view.ViewRootImpl.doTraversal:2933 android.view.ViewRootImpl$TraversalRunnable.run:10224 android.view.Choreographer$CallbackRecord.run:1645 android.view.Choreographer$CallbackRecord.run:1654
12635 12635 D VRI[NativeActivity]: vri.Setup new sync=wmsSync-VRI[NativeActivity]#0
12635 12635 D VRI[NativeActivity]: vri.reportDrawFinished
12635 12635 I HandWritingStubImpl: refreshLastKeyboardType: 1
12635 12635 I HandWritingStubImpl: getCurrentKeyboardType: 1
12635 12004 E qdgralloc: GetSize: Unrecognized pixel format: 0x38
12635 12004 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 5
12635 12004 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 5
12635 12004 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0
12635 12004 E qdgralloc: GetSize: Unrecognized pixel format: 0x3b

Thank you for taking the time to read everything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant