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

Issue 2446773002: Always use Desktop GL 4.1 or less BindBufferRange behavior. (Closed)

Created:
4 years, 1 month ago by Zhenyao Mo
Modified:
4 years, 1 month ago
CC:
chromium-reviews, piman+watch_chromium.org, vmiura, Kai Ninomiya
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always use Desktop GL 4.1 or less BindBufferRange behavior. On Desktop 4.2 or later, and on ES3, BindBufferRange can be called without enough data store to backup the offset and size, assuming drivers will handle the out-of-bounds access correctly. In Chrome we play it safe by not trusting the drivers and emulate the older behavior everywhere (not just where it is required). BUG=429053 TEST=gpu_unittests R=kbr@chromium.org CQ_INCLUDE_TRYBOTS=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 Committed: https://crrev.com/7f4fd7233c76ecf76a25594040722798dcbb69a8 Cr-Commit-Position: refs/heads/master@{#427224}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -10 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_buffers.cc View 1 chunk +40 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/indexed_buffer_binding_host.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/indexed_buffer_binding_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/transform_feedback_manager.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/transform_feedback_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (10 generated)
Zhenyao Mo
kbr: could you review this? Others: FYI (feel free to review)
4 years, 1 month ago (2016-10-24 21:31:34 UTC) #2
Ken Russell (switch to Gerrit)
Very good. LGTM https://codereview.chromium.org/2446773002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2446773002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode3108 gpu/command_buffer/service/gles2_cmd_decoder.cc:3108: // do not handle out-of-bounds visit ...
4 years, 1 month ago (2016-10-24 21:39:24 UTC) #6
Zhenyao Mo
https://codereview.chromium.org/2446773002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2446773002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode3108 gpu/command_buffer/service/gles2_cmd_decoder.cc:3108: // do not handle out-of-bounds visit securely. On 2016/10/24 ...
4 years, 1 month ago (2016-10-24 21:47:30 UTC) #7
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/2446773002/20001
4 years, 1 month ago (2016-10-24 21:48:59 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/166766)
4 years, 1 month ago (2016-10-24 23:44:03 UTC) #12
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/2446773002/20001
4 years, 1 month ago (2016-10-24 23:55:44 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-25 01:39:47 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 01:41:43 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7f4fd7233c76ecf76a25594040722798dcbb69a8
Cr-Commit-Position: refs/heads/master@{#427224}

Powered by Google App Engine
This is Rietveld 408576698