|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by Zhenyao Mo Modified:
4 years, 1 month ago CC:
chromium-reviews, piman+watch_chromium.org, Ken Russell (switch to Gerrit), vmiura Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionInitialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
NOTRY=true
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/79d05bf972b24b752029c2d9c727bfe975f2f208
Cr-Commit-Position: refs/heads/master@{#432970}
Patch Set 1 #
Total comments: 2
Depends on Patchset: Messages
Total messages: 19 (11 generated)
Description was changed from
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
==========
to
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@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
==========
Jamie: PTAL
The CQ bit was checked by zmo@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...
kbr@chromium.org changed reviewers: + kbr@chromium.org
I see. Yes, I can imagine that that driver might report an incomplete framebuffer with only a depth attachment attached. LGTM but let's let either Jamie or Kai look at this change too.
jmadill@chromium.org changed reviewers: - kbr@chromium.org
lgtm, but not an owner. the command buffer validation code will catch invalid cases presumably, like es2+no extension+trying to subimage a depth texture.
kainino@chromium.org changed reviewers: + kainino@chromium.org
https://codereview.chromium.org/2510163003/diff/1/gpu/command_buffer/service/... File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2510163003/diff/1/gpu/command_buffer/service/... gpu/command_buffer/service/gles2_cmd_decoder.cc:12204: feature_info_->gl_version_info().is_es2) { I think the logic here is valid but doesn't quite make sense. If angle_depth_texture is false, I think neither path will work. Perhaps it should throw an error in that case: if ((channels & GLES2Util::kDepth) != 0 && !feature_info_->feature_flags().angle_depth_texture) { // this is an error } if ((channels & GLES2Util::kDepth) != 0 && feature_info_->gl_version_info().is_es2) {
https://codereview.chromium.org/2510163003/diff/1/gpu/command_buffer/service/... File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2510163003/diff/1/gpu/command_buffer/service/... gpu/command_buffer/service/gles2_cmd_decoder.cc:12204: feature_info_->gl_version_info().is_es2) { On 2016/11/17 20:41:22, Kai Ninomiya wrote: > I think the logic here is valid but doesn't quite make sense. If > angle_depth_texture is false, I think neither path will work. Perhaps it should > throw an error in that case: > > if ((channels & GLES2Util::kDepth) != 0 && > !feature_info_->feature_flags().angle_depth_texture) { > // this is an error > } > > if ((channels & GLES2Util::kDepth) != 0 && > feature_info_->gl_version_info().is_es2) { You are right. I can move feature_info_->feature_flags().angle_depth_texture into the if body as a DCHECK
Description was changed from
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@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
==========
to
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
NOTRY=true
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
==========
The CQ bit was unchecked by zmo@chromium.org
The CQ bit was checked by zmo@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
NOTRY=true
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
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
NOTRY=true
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
==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
NOTRY=true
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
==========
Initialize depth texture using tex{Sub}Image2D except for ANGLE ES2
ANGLE_depth_texture does not allow uploading depth texture through
tex{Sub}Image2D.
BUG=666384
TEST=Linux Intel bot on GPU FYI
R=jmadill@chromium.org
NOTRY=true
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/79d05bf972b24b752029c2d9c727bfe975f2f208
Cr-Commit-Position: refs/heads/master@{#432970}
==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/79d05bf972b24b752029c2d9c727bfe975f2f208 Cr-Commit-Position: refs/heads/master@{#432970} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
