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

Issue 16409014: gpu: Workaround invalid values from GetShaderPrecisionFormat (Closed)

Created:
7 years, 6 months ago by brianderson
Modified:
7 years, 6 months ago
CC:
chromium-reviews, apatrick_chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

gpu: Workaround invalid values from GetShaderPrecisionFormat N4 reports negative numbers in the range when they should be positive, so we take the absolute value of the range before sending it to the client. Some devices report highp precisions when they can't actually be used, so we force highp precisions to 0 (usupported) in those cases before sending it to the client. BUG=245755 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205832

Patch Set 1 #

Total comments: 4

Patch Set 2 : Put magic numbers for highp in a shared function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 3 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ken Russell (switch to Gerrit)
This LGTM but I am not an owner; Gregg should review this. https://codereview.chromium.org/16409014/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc ...
7 years, 6 months ago (2013-06-11 20:01:27 UTC) #1
Ken Russell (switch to Gerrit)
Actually, it would be really good if this workaround could be controlled by the GPU ...
7 years, 6 months ago (2013-06-11 21:45:09 UTC) #2
greggman
https://codereview.chromium.org/16409014/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/16409014/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode2526 gpu/command_buffer/service/gles2_cmd_decoder.cc:2526: GLint range[2] = { 0, 0 }; What kbr ...
7 years, 6 months ago (2013-06-11 21:58:50 UTC) #3
brianderson
On 2013/06/11 21:45:09, kbr wrote: > Actually, it would be really good if this workaround ...
7 years, 6 months ago (2013-06-11 23:30:26 UTC) #4
Ken Russell (switch to Gerrit)
On 2013/06/11 23:30:26, Brian Anderson wrote: > On 2013/06/11 21:45:09, kbr wrote: > > Actually, ...
7 years, 6 months ago (2013-06-11 23:35:34 UTC) #5
brianderson
ptal https://codereview.chromium.org/16409014/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/16409014/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode134 gpu/command_buffer/service/gles2_cmd_decoder.cc:134: (range[0] < 62 || range[1] < 62 || ...
7 years, 6 months ago (2013-06-11 23:35:46 UTC) #6
Ken Russell (switch to Gerrit)
lgtm
7 years, 6 months ago (2013-06-11 23:36:48 UTC) #7
greggman
lgtm
7 years, 6 months ago (2013-06-12 00:32:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/16409014/11001
7 years, 6 months ago (2013-06-12 00:33:20 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-12 17:00:46 UTC) #10
Message was sent while issue was closed.
Change committed as 205832

Powered by Google App Engine
This is Rietveld 408576698