|
|
Chromium Code Reviews|
Created:
4 years ago by Corentin Wallez Modified:
4 years ago CC:
chromium-reviews, piman+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptiongles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm
BUG=chromium:668223
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/178234d4c943ba92d9e8d7c9a6fb38daa9e19071
Cr-Commit-Position: refs/heads/master@{#439270}
Patch Set 1 #
Messages
Total messages: 20 (10 generated)
Description was changed from ========== gles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm BUG=chromium:668223 ========== to ========== gles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm BUG=chromium:668223 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 ==========
cwallez@chromium.org changed reviewers: + geofflang@chromium.org, zmo@chromium.org
PTAL, this fixes a context lost when TexSubImage is called with width = height = 0.
The CQ bit was checked by cwallez@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/12/16 22:33:32, Corentin Wallez wrote: > PTAL, this fixes a context lost when TexSubImage is called with width = height = > 0. Can you explain to me why this CL fixes this border case? From the code it's not apparent to me. Just try to understand.
On 2016/12/16 at 23:10:51, zmo wrote: > On 2016/12/16 22:33:32, Corentin Wallez wrote: > > PTAL, this fixes a context lost when TexSubImage is called with width = height = > > 0. > > Can you explain to me why this CL fixes this border case? From the code it's not apparent to me. Just try to understand. GLES2Implementation::TexSubImage2D special cases width = height = 0 and sends (shm id = 0, offset = 0). See https://cs.chromium.org/chromium/src/gpu/command_buffer/client/gles2_implemen...
On 2016/12/16 23:49:37, Corentin Wallez wrote: > On 2016/12/16 at 23:10:51, zmo wrote: > > On 2016/12/16 22:33:32, Corentin Wallez wrote: > > > PTAL, this fixes a context lost when TexSubImage is called with width = > height = > > > 0. > > > > Can you explain to me why this CL fixes this border case? From the code it's > not apparent to me. Just try to understand. > > GLES2Implementation::TexSubImage2D special cases width = height = 0 and sends > (shm id = 0, offset = 0). > See > https://cs.chromium.org/chromium/src/gpu/command_buffer/client/gles2_implemen... I understand this. I also understand why you want to assign the ID and offset to local variables and use that instead, so we won't have inconsistent values from the same param. However, is that's being triggered (that's not an easy to trigger condition)? Otherwise the code logic doesn't change.
On 2016/12/16 at 23:53:31, zmo wrote: > On 2016/12/16 23:49:37, Corentin Wallez wrote: > > On 2016/12/16 at 23:10:51, zmo wrote: > > > On 2016/12/16 22:33:32, Corentin Wallez wrote: > > > > PTAL, this fixes a context lost when TexSubImage is called with width = > > height = > > > > 0. > > > > > > Can you explain to me why this CL fixes this border case? From the code it's > > not apparent to me. Just try to understand. > > > > GLES2Implementation::TexSubImage2D special cases width = height = 0 and sends > > (shm id = 0, offset = 0). > > See > > https://cs.chromium.org/chromium/src/gpu/command_buffer/client/gles2_implemen... > > I understand this. I also understand why you want to assign the ID and offset to local variables and use that instead, so we won't have inconsistent values from the same param. > > However, is that's being triggered (that's not an easy to trigger condition)? Otherwise the code logic doesn't change. I'm not sure I understand the question, sorry. The initial reason I did this change is that when width = height = 0, in HandleTexSubImage2D would return error::kOutOfBounds which causes a context loss and makes the rest of the WebGL CTS fail. Then I did the same fix for 3D and saw that HandleTexImage2D/3D read the shm_id and offset twice and fixed that too.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
OK, I missed the part where TexSubImage fixes are different from the TexImage changes (that's me being lazy and less careful, sorry!) LGTM
On 2016/12/17 at 00:32:09, zmo wrote: > OK, I missed the part where TexSubImage fixes are different from the TexImage changes (that's me being lazy and less careful, sorry!) > LGTM Thanks for the review!
The CQ bit was checked by cwallez@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 1, "attempt_start_ts": 1481936228439570, "parent_rev":
"ba6ef0af743f7405a97a2c9f5c452be6491331b8", "commit_rev":
"529ed2b04ed914493e1ab3accefc69c34e61b028"}
Message was sent while issue was closed.
Description was changed from ========== gles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm BUG=chromium:668223 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 ========== to ========== gles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm BUG=chromium:668223 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 Review-Url: https://codereview.chromium.org/2587583002 ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== gles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm BUG=chromium:668223 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 Review-Url: https://codereview.chromium.org/2587583002 ========== to ========== gles2_cmd_decoder_passthrough: Handle Tex[Sub]Image[2/3]D with empty shm BUG=chromium:668223 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/178234d4c943ba92d9e8d7c9a6fb38daa9e19071 Cr-Commit-Position: refs/heads/master@{#439270} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/178234d4c943ba92d9e8d7c9a6fb38daa9e19071 Cr-Commit-Position: refs/heads/master@{#439270} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
