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

Issue 1309333003: Get ReadPixels to work with INT and UNSIGNED_INT format. (Closed)

Created:
5 years, 4 months ago by Zhenyao Mo
Modified:
5 years, 3 months ago
CC:
chromium-reviews, piman+watch_chromium.org, Ken Russell (switch to Gerrit), bajones, vmiura
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get ReadPixels to work with INT and UNSIGNED_INT format. In order to get it to work and test it, glClearBuffer*() has to be strengthened. The remaining issue for ReadPixles is to return reasonable implementation specific format/type. Currently it always return RGBA and UNSIGNED_BYTE, which won't work for INT and UNSIGNED_INT framebuffer. With this CL, read-pixels-from-fbo-test.html finally work (minus the implementation specific format/type). BUG=429053 TEST=conformance2/reading/read-pixels-from-fbo-test.html R=sievers@chromium.org Committed: https://crrev.com/b54b499af473e3da175e0ebb5681a80ee56c2241 Cr-Commit-Position: refs/heads/master@{#345740}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 4

Messages

Total messages: 23 (8 generated)
Zhenyao Mo
sievers: PTAL others: FYI (feel free to review)
5 years, 4 months ago (2015-08-24 22:42:47 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309333003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309333003/1
5 years, 4 months ago (2015-08-24 22:43:07 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/94376)
5 years, 4 months ago (2015-08-24 23:14:14 UTC) #6
Ken Russell (switch to Gerrit)
Fantastic. Great work persevering with this. Non-owner LGTM. https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5778 gpu/command_buffer/service/gles2_cmd_decoder.cc:5778: // ...
5 years, 4 months ago (2015-08-24 23:16:13 UTC) #8
Zhenyao Mo
https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5778 gpu/command_buffer/service/gles2_cmd_decoder.cc:5778: // To avoid undefined results, return without calling the ...
5 years, 4 months ago (2015-08-24 23:39:25 UTC) #9
Zhenyao Mo
Now the gpu_unittests should pass. sievers: PTAL https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6032 gpu/command_buffer/service/gles2_cmd_decoder.cc:6032: framebuffer->ClearIntegerBuffers(); On ...
5 years, 4 months ago (2015-08-25 02:17:28 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309333003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309333003/20001
5 years, 4 months ago (2015-08-25 02:17:45 UTC) #12
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1309333003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6032 gpu/command_buffer/service/gles2_cmd_decoder.cc:6032: framebuffer->ClearIntegerBuffers(); On 2015/08/25 02:17:28, Zhenyao Mo wrote: > On ...
5 years, 4 months ago (2015-08-25 02:18:39 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-25 03:37:43 UTC) #15
Zhenyao Mo
On 2015/08/25 03:37:43, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 3 months ago (2015-08-26 20:32:46 UTC) #16
no sievers
lgtm https://codereview.chromium.org/1309333003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1309333003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5798 gpu/command_buffer/service/gles2_cmd_decoder.cc:5798: if (!GLES2Util::IsSignedIntegerFormat(internal_format)) { Is 'unsigned int' here really ...
5 years, 3 months ago (2015-08-26 21:44:20 UTC) #17
Zhenyao Mo
https://codereview.chromium.org/1309333003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1309333003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5798 gpu/command_buffer/service/gles2_cmd_decoder.cc:5798: if (!GLES2Util::IsSignedIntegerFormat(internal_format)) { On 2015/08/26 21:44:20, sievers wrote: > ...
5 years, 3 months ago (2015-08-26 23:09:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309333003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309333003/20001
5 years, 3 months ago (2015-08-26 23:10:46 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-08-27 00:18:35 UTC) #22
commit-bot: I haz the power
5 years, 3 months ago (2015-08-27 00:19:43 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b54b499af473e3da175e0ebb5681a80ee56c2241
Cr-Commit-Position: refs/heads/master@{#345740}

Powered by Google App Engine
This is Rietveld 408576698