Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Issue 2833823002: WebVR: Add explicit precision to all shaders to avoid Mali GPU crash (Closed)

Created:
3 years, 8 months ago by klausw
Modified:
3 years, 8 months ago
Reviewers:
mthiesse, bajones
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebVR: Add explicit precision to all shaders to avoid Mali GPU crash On Mali GPUs as used on Samsung S7 and other devices, precision qualifiers are mandatory in GLSL shaders, there's no default. This causes a browser crash due to failing shader compilation: chromium: [FATAL:vr_shell_renderer.cc(246)] Check failed: fragment_shader_handle. Error compiling shader: 0:1: S0032: no default precision defined for variable 'v_TexCoordinate' To fix this, add explicit "mediump" to all shaders. Also update the v_TexCoordinate precision in vertex shaders to be "highp" to match the fragment shader. In practice this doesn't currently make a difference since the vertex coordinate values used are just 0, 0.5, or 1, all of which can be precisely represented in a mediump, but it seems cleaner to keep this consistent. BUG=713516 Review-Url: https://codereview.chromium.org/2833823002 Cr-Commit-Position: refs/heads/master@{#466153} Committed: https://chromium.googlesource.com/chromium/src/+/577ecb1d07b3990adc456b13143046561dd86ccc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M chrome/browser/android/vr_shell/mailbox_to_surface_bridge.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_renderer.cc View 5 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
klausw
FYI, one of the shaders uses "mediump" in many declarations which would now be redundant, ...
3 years, 8 months ago (2017-04-20 16:52:46 UTC) #2
bajones
On 2017/04/20 16:52:46, klausw wrote: > FYI, one of the shaders uses "mediump" in many ...
3 years, 8 months ago (2017-04-20 18:05:26 UTC) #3
mthiesse
lgtm
3 years, 8 months ago (2017-04-20 18:33:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2833823002/1
3 years, 8 months ago (2017-04-20 21:52:52 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 21:57:49 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/577ecb1d07b3990adc456b131430...

Powered by Google App Engine
This is Rietveld 408576698