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

Issue 2693653002: cmaa, gpu: use R8 image texture when GL_NV_image_formats is available. (Closed)

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

Description

cmaa, gpu: use R8 image texture when GL_NV_image_formats is available. Recently Mesa supports GL_NV_image_formats extension for r8 image texture for ES 3.1. https://bugs.freedesktop.org/show_bug.cgi?id=98480 So CMAA can use R8 texture, instead of RGBA8. In addition, CMAA implementation checks R8 support tests, and it slows down GPU initialization. Remove all unnecessary tests and just check certain extensions. BUG=535198, 642290 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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/2693653002 Cr-Commit-Position: refs/heads/master@{#455170} Committed: https://chromium.googlesource.com/chromium/src/+/8d2609f6aa6f0a9f8ae238b8af06770337d726eb

Patch Set 1 #

Patch Set 2 : fix wrong format of comment #

Total comments: 10

Patch Set 3 : check "GL_ARB_texture_storage" #

Patch Set 4 : RestoreActiveTexture after initialization #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -72 lines) Patch
M gpu/command_buffer/service/feature_info.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h View 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc View 1 2 3 6 chunks +56 lines, -70 lines 1 comment Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 43 (27 generated)
dshwang
zmo@, could you review?
3 years, 10 months ago (2017-02-10 23:17:53 UTC) #4
dshwang
Zhenyao, do you have a chance to review it?
3 years, 10 months ago (2017-02-21 21:50:23 UTC) #13
dshwang
On 2017/02/21 21:50:23, dshwang wrote: > Zhenyao, do you have a chance to review it? ...
3 years, 10 months ago (2017-02-24 00:46:38 UTC) #16
dshwang
Ken, could you review this change? It makes webgl initialzation faster on chromebook.
3 years, 9 months ago (2017-03-01 21:54:05 UTC) #18
Zhenyao Mo
On 2017/03/01 21:54:05, dshwang wrote: > Ken, could you review this change? It makes webgl ...
3 years, 9 months ago (2017-03-01 22:00:27 UTC) #19
Zhenyao Mo
Sorry about the delay. A couple questions, not exactly a result or your CL, but ...
3 years, 9 months ago (2017-03-01 23:52:34 UTC) #20
dshwang
Thank you for reviewing! https://codereview.chromium.org/2693653002/diff/20001/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/2693653002/diff/20001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode70 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:70: DCHECK(decoder->GetGLContext()->HasExtension( On 2017/03/01 23:52:33, Zhenyao ...
3 years, 9 months ago (2017-03-02 20:27:03 UTC) #22
Zhenyao Mo
https://codereview.chromium.org/2693653002/diff/20001/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/2693653002/diff/20001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode80 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:80: glBindTexture(GL_TEXTURE_2D, rgba8ui_texture); On 2017/03/02 20:27:03, dshwang wrote: > On ...
3 years, 9 months ago (2017-03-06 03:36:54 UTC) #26
dshwang
https://codereview.chromium.org/2693653002/diff/20001/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/2693653002/diff/20001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode80 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:80: glBindTexture(GL_TEXTURE_2D, rgba8ui_texture); On 2017/03/06 03:36:54, Zhenyao Mo wrote: > ...
3 years, 9 months ago (2017-03-07 02:44:10 UTC) #27
dshwang
https://codereview.chromium.org/2693653002/diff/60001/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/2693653002/diff/60001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode109 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:109: decoder->RestoreFramebufferBindings(); > What I mean is the bindings before ...
3 years, 9 months ago (2017-03-07 03:13:31 UTC) #30
Zhenyao Mo
On 2017/03/07 03:13:31, dshwang wrote: > https://codereview.chromium.org/2693653002/diff/60001/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): > > ...
3 years, 9 months ago (2017-03-07 17:40:38 UTC) #34
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/2693653002/60001
3 years, 9 months ago (2017-03-07 17:55:19 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/8d2609f6aa6f0a9f8ae238b8af06770337d726eb
3 years, 9 months ago (2017-03-07 19:11:53 UTC) #39
Michael Achenbach
Possibly this breaks: https://build.chromium.org/p/chromium.gpu/builders/Linux%20Debug%20%28NVIDIA%29/builds/74126 Error from the output: [4533:4533:0307/120003.054303:1731388651:ERROR:gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc(647)] ApplyFramebufferAttachmentCMAAINTEL: shader compilation failed: GL_FRAGMENT_SHADER shader ...
3 years, 9 months ago (2017-03-09 09:34:04 UTC) #41
Zhenyao Mo
On 2017/03/09 09:34:04, Michael Achenbach wrote: > Possibly this breaks: > https://build.chromium.org/p/chromium.gpu/builders/Linux%20Debug%20%28NVIDIA%29/builds/74126 > > Error ...
3 years, 9 months ago (2017-03-09 17:26:20 UTC) #42
Zhenyao Mo
3 years, 9 months ago (2017-03-09 17:27:04 UTC) #43
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2738213003/ by zmo@chromium.org.

The reason for reverting is: This breaks:
https://build.chromium.org/p/chromium.gpu/builders/Linux%20Debug%20%28NVIDIA%...

Error from the output:
[4533:4533:0307/120003.054303:1731388651:ERROR:gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc(647)]
ApplyFramebufferAttachmentCMAAINTEL: shader compilation failed:
GL_FRAGMENT_SHADER shader compilation failed: 0(1) : error C0000: syntax error,
unexpected $undefined at token "<undefined>"
0(1) : error C0155: integer constant overflow
0(4) : warning C7022: unrecognized profile specifier "highp"
0(4) : warning C7022: unrecognized profile specifier "precision".

Powered by Google App Engine
This is Rietveld 408576698