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

Issue 2543123003: gpu, cmaa: improve |do_copy| condition logic (Closed)

Created:
4 years ago by dshwang
Modified:
3 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu, cmaa: improve |do_copy| condition logic ImageTexture binding is supported for only immutable texture [1] [1] https://www.khronos.org/opengles/sdk/docs/man31/html/glBindImageTexture.xhtml CMAA needs to use ImageTexture binding, so it checkes internal format is RGBA8. However, in GLES2 context, immutable texture can have RGBA internal format, because of https://codereview.chromium.org/2458103002/ This CL makes it check immutable texture directly. BUG=535198 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/2543123003 Cr-Commit-Position: refs/heads/master@{#443326} Committed: https://chromium.googlesource.com/chromium/src/+/5b85620a5e701039630f96339a6d1b4ceb5b14f0

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add GetTexture() instead of IsTextureAttachmentImmutable() #

Patch Set 3 : use existing attachment->object_name() #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -8 lines) Patch
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h View 1 2 2 chunks +5 lines, -3 lines 2 comments Download
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc View 1 2 3 chunks +13 lines, -4 lines 2 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
dshwang
piman@, could you review? It's follow-up CL of https://codereview.chromium.org/2458103002/
4 years ago (2016-12-02 02:33:06 UTC) #5
piman
https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode246 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:246: attachment->IsTextureAttachmentImmutable() && Well, you already know you have a ...
4 years ago (2016-12-02 20:36:46 UTC) #8
dshwang
Thanks for reviewing. Could you review again? https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode246 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:246: attachment->IsTextureAttachmentImmutable() && ...
4 years ago (2016-12-02 23:40:24 UTC) #11
piman
https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode246 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:246: attachment->IsTextureAttachmentImmutable() && On 2016/12/02 23:40:24, dshwang wrote: > On ...
4 years ago (2016-12-05 20:07:09 UTC) #14
dshwang
Zhenyao, could you review because piman is on leave? We almost made a consensus. https://codereview.chromium.org/2543123003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc ...
4 years ago (2016-12-09 03:23:27 UTC) #20
Zhenyao Mo
lgtm https://codereview.chromium.org/2543123003/diff/40001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h (right): https://codereview.chromium.org/2543123003/diff/40001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h#newcode39 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h:39: TextureManager* texture_manager); I prefer exposing texture_manager() to GLES2Decoder ...
4 years ago (2016-12-09 18:21:05 UTC) #23
dshwang
thanks for review and sorry for late response. It still works without conflict, so let ...
3 years, 11 months ago (2017-01-12 17:19:34 UTC) #24
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/2543123003/40001
3 years, 11 months ago (2017-01-12 17:20:14 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/367841)
3 years, 11 months ago (2017-01-12 18:26:19 UTC) #28
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/2543123003/40001
3 years, 11 months ago (2017-01-12 18:57:22 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/5b85620a5e701039630f96339a6d1b4ceb5b14f0
3 years, 11 months ago (2017-01-12 19:39:43 UTC) #33
qiankun
https://codereview.chromium.org/2543123003/diff/40001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2543123003/diff/40001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode259 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:259: copier->DoCopySubTexture( Hi DS, DoCopySubTexture only supported GLES2 formats at ...
3 years, 10 months ago (2017-02-08 03:19:56 UTC) #35
dshwang
3 years, 10 months ago (2017-02-10 01:13:38 UTC) #36
Message was sent while issue was closed.
https://codereview.chromium.org/2543123003/diff/40001/gpu/command_buffer/serv...
File
gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc
(right):

https://codereview.chromium.org/2543123003/diff/40001/gpu/command_buffer/serv...
gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:259:
copier->DoCopySubTexture(
On 2017/02/08 03:19:56, qiankun wrote:
> Hi DS,
> 
> DoCopySubTexture only supported GLES2 formats at this point. I extended it to
> support part of ES3 formats: https://codereview.chromium.org/2479513002/. A
few
> ES3 formats is still not supported yet, e.g. RGBA16I, RGBA16UI, RGBA32I,
> RGBA32UI, because that it is not clear how to translate 8-bit format to 16-bit
> or 32-bit format, see the Rationale under texImage2D section in WebGL 2.0
spec:
> https://www.khronos.org/registry/webgl/specs/latest/2.0/index.html#3.7.6. So
it
> may have potential issues using DoCopySubTexture here. What do you think? I
> proposed a CL to fix part issue:https://codereview.chromium.org/2680703003/.
But
> I think we still need to support other ES3 formats if we use DoCopySubTexture
> here or find other methods to do copy.

Hi Qiankun,

CMAA requires only RGB, RGBA, and probably SRGBA. Only default framebuffer
object for DrawingBuffer uses CMAA. So your
https://codereview.chromium.org/2479513002/ is enough for CMAA. Thank you!

Powered by Google App Engine
This is Rietveld 408576698