|
|
DescriptionCommand buffer: generate correct GL error for invalid level for compressed texture
This change can fix some bugs in negativetextureapi.html in WebGL deqp.
BUG=565347
TEST=deqp/functional/gles3/negativetextureapi.html
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel
Committed: https://crrev.com/9ad4a35e2a01d16e8b58a86e417e796ecc81edd1
Cr-Commit-Position: refs/heads/master@{#379697}
Patch Set 1 #Patch Set 2 : addressed zmo@'s feedback #
Total comments: 2
Patch Set 3 : addressed zmo@'s feedback #Messages
Total messages: 22 (10 generated)
Description was changed from ========== Command buffer: generates correct GL error for invalid level for compressed texture BUG= ========== to ========== Command buffer: generates correct GL error for invalid level for compressed texture BUG= CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ==========
Description was changed from ========== Command buffer: generates correct GL error for invalid level for compressed texture BUG= CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ========== to ========== Command buffer: generates correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ==========
yunchao.he@intel.com changed reviewers: + bajones@chromium.org, kbr@chromium.org, piman@chromium.org, qiankun.miao@intel.com, zmo@chromium.org
Description was changed from ========== Command buffer: generates correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ========== to ========== Command buffer: generates correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ==========
It should generate INVALID_VALUE, instead of INVALID_OPERAION. See the statements for 'level' argument for texSubImage{2D|3D}, compressed texture related API follow the same criteria: https://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.4.pdf#nameddest=s... PTAL. Thanks a lot!
Description was changed from ========== Command buffer: generates correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ========== to ========== Command buffer: generate correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ==========
On 2016/03/02 12:27:04, yunchao wrote: > It should generate INVALID_VALUE, instead of INVALID_OPERAION. See the > statements for 'level' argument for texSubImage{2D|3D}, compressed texture > related API follow the same criteria: > https://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.4.pdf#nameddest=s... > > > PTAL. Thanks a lot! Not really. If level < 0 or level > log2(MAX_SIZE) then INVALID_VALUE, but if 0 <= level <= log2(MAX_SIZE) but not defined by TexImage calls, then it's INVALID_OPERATION. Command buffer may not check the INVALID_VALUE cases though.
On 2016/03/02 17:42:08, Zhenyao Mo wrote: > On 2016/03/02 12:27:04, yunchao wrote: > > It should generate INVALID_VALUE, instead of INVALID_OPERAION. See the > > statements for 'level' argument for texSubImage{2D|3D}, compressed texture > > related API follow the same criteria: > > > https://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.4.pdf#nameddest=s... > > > > > > PTAL. Thanks a lot! > > Not really. If level < 0 or level > log2(MAX_SIZE) then INVALID_VALUE, but if 0 > <= level <= log2(MAX_SIZE) but not defined by TexImage calls, then it's > INVALID_OPERATION. > > Command buffer may not check the INVALID_VALUE cases though. OK, I added a code snippet to check the INVALID_VALUE for CompressedTexSubImage{2D|3D} in the latest patch set. PTAL.
https://codereview.chromium.org/1749183003/diff/20001/gpu/command_buffer/serv... File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1749183003/diff/20001/gpu/command_buffer/serv... gpu/command_buffer/service/gles2_cmd_decoder.cc:11337: if (!texture_manager()->ValidForTarget(target, level, width, height, 1)) { This needs to happen after GetTextureInfoForTarget() so we are sure target is valid.
Thanks for your review, Zhenyao. Code has been updated accordingly. PTAL. https://codereview.chromium.org/1749183003/diff/20001/gpu/command_buffer/serv... File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1749183003/diff/20001/gpu/command_buffer/serv... gpu/command_buffer/service/gles2_cmd_decoder.cc:11337: if (!texture_manager()->ValidForTarget(target, level, width, height, 1)) { On 2016/03/04 17:39:58, Zhenyao Mo wrote: > This needs to happen after GetTextureInfoForTarget() so we are sure target is > valid. Done.
On 2016/03/07 02:58:19, yunchao wrote: > Thanks for your review, Zhenyao. Code has been updated accordingly. PTAL. > > https://codereview.chromium.org/1749183003/diff/20001/gpu/command_buffer/serv... > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/1749183003/diff/20001/gpu/command_buffer/serv... > gpu/command_buffer/service/gles2_cmd_decoder.cc:11337: if > (!texture_manager()->ValidForTarget(target, level, width, height, 1)) { > On 2016/03/04 17:39:58, Zhenyao Mo wrote: > > This needs to happen after GetTextureInfoForTarget() so we are sure target is > > valid. > > Done. The caller of DoCompressedTexSubImage2D has checked the "target" argument. So the patchset 2 is OK. The patchset 3 is OK too. It is not important of the sequence of these two functions (GetTextureInfoForTarget() and ValidForTarget()) here.
You are correct. lgtm
The CQ bit was checked by yunchao.he@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749183003/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by yunchao.he@intel.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749183003/40001
Message was sent while issue was closed.
Description was changed from ========== Command buffer: generate correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ========== to ========== Command buffer: generate correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Command buffer: generate correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel ========== to ========== Command buffer: generate correct GL error for invalid level for compressed texture This change can fix some bugs in negativetextureapi.html in WebGL deqp. BUG=565347 TEST=deqp/functional/gles3/negativetextureapi.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/9ad4a35e2a01d16e8b58a86e417e796ecc81edd1 Cr-Commit-Position: refs/heads/master@{#379697} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/9ad4a35e2a01d16e8b58a86e417e796ecc81edd1 Cr-Commit-Position: refs/heads/master@{#379697} |