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

Issue 1419393005: command_buffer: Make inactive bound uniforms reserve the location (Closed)

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

Description

command_buffer: Make inactive bound uniforms reserve the location Specifying uniform values with locations bound with CHROMIUM_bind_uniform_location should work, regardless whether the underlying driver optimized the variable away or not. Fixes the case where updating an inactive uniform would cause INVALID_OPERATION, because the location was empty. Fixes the case where updating an uniform would cause wrong uniform to be updated, if the uniform was inactive and bound to a location that would be assigned to an unbound uniform. Makes the Program::uniform_infos_ array linear (non-sparse). The location bindings are now handled with Program::uniform_locations_ sparse array. Simplifies the correction of driver-supplied uniform names and determining whether an uniform is an array or not. Fixes a cc bug exposed by the implementation (cc_unittests): VideoGLRendererPixelTest.YUVAEdgeBleed VideoGLRendererPixelTest.SimpleYUVARect BUG=542355 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/8fbcba14c3ad7a6e27293dce819450e5aa44e4aa Cr-Commit-Position: refs/heads/master@{#361076}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : address review comments #

Patch Set 5 : fix uninitialized var warning that should not happen #

Patch Set 6 : fix msvc #

Patch Set 7 : fix a cc bug exposed by the implementation #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -370 lines) Patch
M cc/output/shader.cc View 1 2 3 4 5 6 1 chunk +2 lines, -9 lines 1 comment Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_bind_uniform_location.txt View 2 chunks +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/program_manager.h View 1 2 3 4 5 7 chunks +45 lines, -29 lines 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 2 3 4 17 chunks +236 lines, -282 lines 0 comments Download
M gpu/command_buffer/service/test_helper.cc View 1 2 3 1 chunk +30 lines, -40 lines 0 comments Download
M gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc View 1 2 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
Kimmo Kinnunen
5 years, 1 month ago (2015-11-06 11:22:52 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419393005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419393005/20001
5 years, 1 month ago (2015-11-06 11:38:15 UTC) #4
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 1 month ago (2015-11-06 11:38:17 UTC) #6
Zhenyao Mo
Personally I am a little bit reserved about BindUniformLocation("non-existing-name", location), and that location becomes valid ...
5 years, 1 month ago (2015-11-20 00:14:15 UTC) #7
Zhenyao Mo
lgtm https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.h File gpu/command_buffer/service/program_manager.h (right): https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.h#newcode121 gpu/command_buffer/service/program_manager.h:121: uniform_ = uniform; Maybe DCHECK(uniform)? https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.h#newcode202 gpu/command_buffer/service/program_manager.h:202: // ...
5 years, 1 month ago (2015-11-20 00:15:01 UTC) #9
zmo
https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.cc#newcode1036 gpu/command_buffer/service/program_manager.cc:1036: return false; Question: why false here?
5 years, 1 month ago (2015-11-20 00:23:42 UTC) #10
Kimmo Kinnunen
https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/1419393005/diff/40001/gpu/command_buffer/service/program_manager.cc#newcode1036 gpu/command_buffer/service/program_manager.cc:1036: return false; On 2015/11/20 00:23:42, zmo wrote: > Question: ...
5 years, 1 month ago (2015-11-20 07:56:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419393005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419393005/60001
5 years, 1 month ago (2015-11-20 08:13:40 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/143373) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-20 08:24:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419393005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419393005/80001
5 years, 1 month ago (2015-11-20 08:44:26 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/111445)
5 years, 1 month ago (2015-11-20 09:19:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419393005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419393005/100001
5 years, 1 month ago (2015-11-20 09:24:59 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/81632)
5 years, 1 month ago (2015-11-20 10:10:33 UTC) #26
Kimmo Kinnunen
enne@: would you have time to look at the cc/ change?
5 years, 1 month ago (2015-11-20 12:26:09 UTC) #29
enne (OOO)
lgtm, thanks! https://codereview.chromium.org/1419393005/diff/120001/cc/output/shader.cc File cc/output/shader.cc (left): https://codereview.chromium.org/1419393005/diff/120001/cc/output/shader.cc#oldcode2113 cc/output/shader.cc:2113: "cc_matrix", Oops!
5 years, 1 month ago (2015-11-20 18:26:15 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419393005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419393005/120001
5 years, 1 month ago (2015-11-23 06:47:22 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-23 08:25:33 UTC) #34
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 08:26:21 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8fbcba14c3ad7a6e27293dce819450e5aa44e4aa
Cr-Commit-Position: refs/heads/master@{#361076}

Powered by Google App Engine
This is Rietveld 408576698