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

Issue 2958763003: Fix a bug in shader/program relationship. (Closed)

Created:
3 years, 5 months ago by Zhenyao Mo
Modified:
3 years, 5 months ago
CC:
chromium-reviews, piman+watch_chromium.org, Kai Ninomiya
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a bug in shader/program relationship. A program can have two shaders attached in ES2/3. However, a linked program's shaders may not be the current attached shaders to that program. Consider the following sequence. 1) attach Shader1 and Shader2 to Program 2) link Program, succeed 3) detach Shader1 and Shader2 from Program 4) attach Shader3 and Shader4 to program So after step 3, no shaders are attached to program. After step 4, Shader3 and Shader4 are attached to Program, not Shader1 and Shader2. However, if we want to use shaders to access information from Program, we still need to use Shader1 and Shader2. BUG=735784 TEST=conformance2/uniforms/query-uniform-blocks-after-shader-detach.html R=kbr@chromium.org NOTRY=true CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2958763003 Cr-Commit-Position: refs/heads/master@{#482477} Committed: https://chromium.googlesource.com/chromium/src/+/8e4a133d94d88ad3fcf2705fb45f16ab72b58092

Patch Set 1 #

Patch Set 2 : Fix a bug in shader/program relationship. #

Total comments: 5

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -8 lines) Patch
M gpu/command_buffer/service/program_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 2 16 chunks +34 lines, -8 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Zhenyao Mo
This is the CL. I'll ping you for review when bots are green.
3 years, 5 months ago (2017-06-26 19:44:34 UTC) #4
Ken Russell (switch to Gerrit)
Great work, Mo. Thanks for picking this up. It looks good overall but please do ...
3 years, 5 months ago (2017-06-26 20:18:32 UTC) #7
Zhenyao Mo
kbr: Ready for review (The original CL got a bug. Basically any use of shaders ...
3 years, 5 months ago (2017-06-26 22:30:04 UTC) #10
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/2958763003/diff/20001/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/2958763003/diff/20001/gpu/command_buffer/service/program_manager.cc#newcode1156 gpu/command_buffer/service/program_manager.cc:1156: Shader* vertex_shader = attached_shaders_[0].get(); Here and in several ...
3 years, 5 months ago (2017-06-26 22:56:20 UTC) #13
Zhenyao Mo
Added comments per kbr review Landing with NOTRY=true because patchset2 already passed all bots and ...
3 years, 5 months ago (2017-06-26 23:58:53 UTC) #15
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/2958763003/40001
3 years, 5 months ago (2017-06-26 23:59:14 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/8e4a133d94d88ad3fcf2705fb45f16ab72b58092
3 years, 5 months ago (2017-06-27 00:04:03 UTC) #21
Ken Russell (switch to Gerrit)
3 years, 5 months ago (2017-06-27 20:58:36 UTC) #22
Message was sent while issue was closed.
lgtm again after the fact.

Powered by Google App Engine
This is Rietveld 408576698