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

Issue 1273693002: command_buffer: Use GLSL core version that matches the OpenGL version (Closed)

Created:
5 years, 4 months ago by Kimmo Kinnunen
Modified:
5 years, 4 months ago
CC:
chromium-reviews, piman+watch_chromium.org, Jamie Madill
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

command_buffer: Use GLSL core version that matches the OpenGL version Use GLSL core version that matches OpenGL version as specified in the corresponding OpenGL specification. This makes it simpler to support GL extensions that depend on specific GLSL feature and are specified to be supported on contexts implementing the GLSL language version. Using the specified version as opposed to a hand-picked specific version should minimize the kind of regressions caused by forcing a specific core GLSL version in the past. The idea is that when implementing a client-side feature that requires a specific service-side GLSL feature, the feature_info can just check the corresponding GL context version. Typically context version of an extension is selected so that GLSL features match. Needed in implementing EXT_blend_func_extended in the client. The service side will be implemented with ARB_blend_func_extended, which uses custom outputs. Using compatibility output from ANGLE would result in gl_ built-ins as well as custom outputs, which is not allowed. BUG=471960 Committed: https://crrev.com/48854200686afcc6f5ff26b3316cb5ae59c365dc Cr-Commit-Position: refs/heads/master@{#343172}

Patch Set 1 #

Total comments: 5

Patch Set 2 : address review comments #

Patch Set 3 : #

Patch Set 4 : fix android compile problem and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -96 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 3 chunks +7 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/mocks.h View 1 1 chunk +6 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.h View 1 2 4 chunks +14 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.cc View 1 4 chunks +52 lines, -24 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_cache.h View 2 chunks +4 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_cache.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_cache_unittest.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_unittest.cc View 1 2 3 6 chunks +127 lines, -20 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
Kimmo Kinnunen
Would this be ok?
5 years, 4 months ago (2015-08-05 11:02:00 UTC) #2
Ken Russell (switch to Gerrit)
This looks generally OK to me. The biggest risk will be on Linux since we'll ...
5 years, 4 months ago (2015-08-05 18:29:38 UTC) #4
Jamie Madill
Not an owner but the general logic of the patch (use highest available version) LGTM. ...
5 years, 4 months ago (2015-08-05 18:35:56 UTC) #6
Geoff Lang
On 2015/08/05 18:35:56, Jamie Madill wrote: > Not an owner but the general logic of ...
5 years, 4 months ago (2015-08-05 18:40:55 UTC) #7
Zhenyao Mo
LGTM with kbr's comments addressed.
5 years, 4 months ago (2015-08-05 18:52:22 UTC) #8
Ken Russell (switch to Gerrit)
On 2015/08/05 18:35:56, Jamie Madill wrote: > Not an owner but the general logic of ...
5 years, 4 months ago (2015-08-06 00:41:00 UTC) #9
piman
LGTM after Ken's comments are addressed.
5 years, 4 months ago (2015-08-06 19:40:04 UTC) #10
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/1273693002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://chromiumcodereview.appspot.com/1273693002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode221 gpu/command_buffer/service/gles2_cmd_decoder.cc:221: ShShaderOutput GetShaderOutputLanguageForContext( On 2015/08/05 18:29:37, Ken Russell OOO-till-Aug-17 wrote: ...
5 years, 4 months ago (2015-08-10 08:36:34 UTC) #11
Ken Russell (switch to Gerrit)
Test looks very good. LGTM
5 years, 4 months ago (2015-08-11 16:41:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273693002/40001
5 years, 4 months ago (2015-08-12 05:17:07 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/46742)
5 years, 4 months ago (2015-08-12 05:35:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273693002/60001
5 years, 4 months ago (2015-08-12 07:32:04 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/27216)
5 years, 4 months ago (2015-08-12 08:08:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273693002/60001
5 years, 4 months ago (2015-08-13 07:57:03 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-13 09:41:41 UTC) #25
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 09:42:21 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/48854200686afcc6f5ff26b3316cb5ae59c365dc
Cr-Commit-Position: refs/heads/master@{#343172}

Powered by Google App Engine
This is Rietveld 408576698