New issue
Advanced search Search tips

Issue 723590 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 724398
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

WebGL buffer resize not working correctly on Xiaomi Snapdragon devices

Reported by a.b...@orangegames.com, May 17 2017

Issue description

Steps to reproduce the problem:
Open a Phaser (WebGL canvas library) game where the initial canvas size is smaller than when the game gets resized for the first time (noteable exampless: https://www.gameeapp.com/game/OsqXRuoNE and http://jewel-burst.fbrq.io/jewel-burst/index.html)

What is the expected behavior?
The game should be playable and take up the entire available screen size

What went wrong?
It appears that after resizing the Canvas that the WebGL buffer doesn't resize correctly. In console you can see the correct width and height set on the gl content, but everything outside the original size is black. The part that is correctly shown is also anchored to the bottom left.

Did this work before? N/A 

Chrome version: 58.0.3029.83  Channel: stable
OS Version: 6.0.1 MMB29M
Flash Version: N.A.

So far I only managed to reproduce this on Xiaomi devices with a Snapdragon chipset included on Chrome (Beta en Release). Firefox does show the game correctly without any black areas.

Also; Xiaomi devices with a Mediatek chipset don't have the issue.
 
Screenshot_2017-05-17-11-40-20-571_com.android.chrome.png
223 KB View Download
Components: Blink>WebGL

Comment 2 by kainino@google.com, May 17 2017

Labels: Needs-Feedback
Can't reproduce on Pixel. Please copy+paste the contents of chrome://gpu into a comment here. We need it in order to diagnose any GPU related issue.
Yeah, the whole weird part is that, so far, I've only seen this on Xiaomi devices. No issues with Samsung or Nexus devices we have.

I've attached the contens of chrome://gpu as a html file
gpu.html
48.0 KB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, May 18 2017

Cc: kainino@google.com
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "kainino@google.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Here's another copy of the chrome://gpu, another (Xiaomi) device that shows the weird behaviour (Redmi note 3 this time, previous was Redmi 4 Prime)
redminote3pro.html
49.2 KB View Download

Comment 6 by kbr@chromium.org, May 18 2017

Interesting. The about:gpu from #3 (Redmi 4 Prime) is an Adreno 506 running ES 3.1 and driver version 145.0 (GIT@I74772a33ad). The Redmi Note 3 is an Adreno 510, ES 3.1, driver version 139.0 (GIT@I59a6815413).

For comparison, the Google Pixel has an Adreno 530 running ES 3.2, driver version 145.0 (GIT@Idb2b4cb785) and doesn't exhibit these issues.

Not sure whether we have these Xiaomi devices in house.

Cc: -kainino@google.com kainino@chromium.org
It's possible that this is an issue with an esoteric hi-dpi scaling factor, or something, which would explain why it's not seen on other devices. It looks like there's a Redmi Note 3 we should be able to test on.

Comment 9 by enne@chromium.org, May 19 2017

Mergedinto: 724398
Status: Duplicate (was: Unconfirmed)
This seems a lot like  issue 724398 .

Sign in to add a comment