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

Issue 1610613002: command_buffer: Fix setting samplers with bound uniforms (Closed)

Created:
4 years, 11 months ago by Kimmo Kinnunen
Modified:
4 years, 11 months ago
Reviewers:
zmo, Zhenyao Mo
CC:
chromium-reviews, 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: Fix setting samplers with bound uniforms Fix a bug with setting samplers using glUniform1i when the sampler location is bound with glBindUniformLocationCHROMIUM. The bug appears if the driver optimizes unused unforms away or if the bound location is higher than the number of active uniforms. BUG=skia:4454 Committed: https://crrev.com/2e91ed9a9b8b925987a98b6b6c18e67fb6d4edf8 Cr-Commit-Position: refs/heads/master@{#371213}

Patch Set 1 #

Total comments: 5

Patch Set 2 : clarification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -12 lines) Patch
M gpu/command_buffer/service/program_manager.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc View 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Kimmo Kinnunen
4 years, 11 months ago (2016-01-20 13:04:23 UTC) #2
Zhenyao Mo
https://codereview.chromium.org/1610613002/diff/1/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/1610613002/diff/1/gpu/command_buffer/service/program_manager.cc#newcode1413 gpu/command_buffer/service/program_manager.cc:1413: if (location_index >= uniform_locations_.size()) Correct me if I am ...
4 years, 11 months ago (2016-01-20 18:41:13 UTC) #4
Kimmo Kinnunen
https://codereview.chromium.org/1610613002/diff/1/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/1610613002/diff/1/gpu/command_buffer/service/program_manager.cc#newcode616 gpu/command_buffer/service/program_manager.cc:616: (1): This binds the automatically bound uniforms to unused ...
4 years, 11 months ago (2016-01-21 12:36:32 UTC) #5
Zhenyao Mo
I think I understand now. lgtm
4 years, 11 months ago (2016-01-22 20:50:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610613002/20001
4 years, 11 months ago (2016-01-25 08:19:12 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-25 09:26:01 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2016-01-25 09:26:54 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2e91ed9a9b8b925987a98b6b6c18e67fb6d4edf8
Cr-Commit-Position: refs/heads/master@{#371213}

Powered by Google App Engine
This is Rietveld 408576698