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

Issue 2841503002: Fix immutable tex srgb emulation issue of generateMipmap (Closed)

Created:
3 years, 8 months ago by yizhou.jiang
Modified:
3 years, 7 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix immutable tex srgb emulation issue of generateMipmap During the emulation of srgb for generateMipmap, we tried to generate all levels of the original texture. But if the texture is immutable texture, we can't generate mipmaps exceed the original range. Also, when the width and height are not equal, they should be at least one during the emulation. BUG=712096 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/2841503002 Cr-Commit-Position: refs/heads/master@{#468238} Committed: https://chromium.googlesource.com/chromium/src/+/a916ec8af80b660d45454ccdf5b88d97249327a8

Patch Set 1 : Fix immutable tex srgb emulation issue of generateMipmap #

Total comments: 2

Patch Set 2 : check texture maxLevel #

Patch Set 3 : Address to qiankun's feedback #

Patch Set 4 : Address to qiankun's feedback #

Patch Set 5 : Modify expectation file #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -10 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_srgb_converter.cc View 1 2 3 2 chunks +21 lines, -9 lines 1 comment Download

Messages

Total messages: 54 (40 generated)
yizhou.jiang
On 2017/04/24 09:55:00, yizhou.jiang wrote: > mailto:yizhou.jiang@intel.com changed reviewers: > + mailto:qiankun.miao@intel.com, mailto:yunchao.he@intel.com Yunchao and ...
3 years, 8 months ago (2017-04-24 09:57:11 UTC) #13
qiankun
https://codereview.chromium.org/2841503002/diff/20001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2841503002/diff/20001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode472 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:472: for (GLint level = base_level + 1; level < ...
3 years, 8 months ago (2017-04-24 11:37:58 UTC) #14
yizhou.jiang
https://codereview.chromium.org/2841503002/diff/20001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2841503002/diff/20001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode472 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:472: for (GLint level = base_level + 1; level < ...
3 years, 8 months ago (2017-04-25 04:47:56 UTC) #26
qiankun
PTAL. Conformance test landed at: https://github.com/KhronosGroup/WebGL/pull/2382
3 years, 8 months ago (2017-04-26 09:39:02 UTC) #36
Ken Russell (switch to Gerrit)
Very nice. LGTM
3 years, 8 months ago (2017-04-27 02:49:38 UTC) #37
yizhou.jiang
On 2017/04/27 02:49:38, Ken Russell wrote: > Very nice. LGTM I upload a webgl roll-in ...
3 years, 7 months ago (2017-04-27 09:57:30 UTC) #38
yizhou.jiang
On 2017/04/27 02:49:38, Ken Russell wrote: > Very nice. LGTM I upload a webgl roll-in ...
3 years, 7 months ago (2017-04-27 09:57:32 UTC) #39
Ken Russell (switch to Gerrit)
On 2017/04/27 09:57:32, yizhou.jiang wrote: > On 2017/04/27 02:49:38, Ken Russell wrote: > > Very ...
3 years, 7 months ago (2017-04-28 18:39:06 UTC) #40
yizhou.jiang
On 2017/04/28 18:39:06, Ken Russell wrote: > On 2017/04/27 09:57:32, yizhou.jiang wrote: > > On ...
3 years, 7 months ago (2017-04-29 11:07:02 UTC) #45
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/2841503002/140001
3 years, 7 months ago (2017-04-29 11:07:23 UTC) #48
commit-bot: I haz the power
Committed patchset #5 (id:140001) as https://chromium.googlesource.com/chromium/src/+/a916ec8af80b660d45454ccdf5b88d97249327a8
3 years, 7 months ago (2017-04-29 11:11:21 UTC) #51
Zhenyao Mo
https://codereview.chromium.org/2841503002/diff/140001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2841503002/diff/140001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode427 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:427: (base_level + mipmap_levels) > max_level ? max_level There is ...
3 years, 7 months ago (2017-05-04 16:55:44 UTC) #52
yizhou.jiang
On 2017/05/04 16:55:44, Zhenyao Mo wrote: > https://codereview.chromium.org/2841503002/diff/140001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc > File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): > > https://codereview.chromium.org/2841503002/diff/140001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode427 ...
3 years, 7 months ago (2017-05-08 08:24:45 UTC) #53
Zhenyao Mo
3 years, 7 months ago (2017-05-08 17:29:28 UTC) #54
Message was sent while issue was closed.
On 2017/05/08 08:24:45, yizhou.jiang wrote:
> On 2017/05/04 16:55:44, Zhenyao Mo wrote:
> >
>
https://codereview.chromium.org/2841503002/diff/140001/gpu/command_buffer/ser...
> > File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right):
> > 
> >
>
https://codereview.chromium.org/2841503002/diff/140001/gpu/command_buffer/ser...
> > gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:427: (base_level +
> > mipmap_levels) > max_level ? max_level
> > There is an overflow issue here with base_level + mipmap_levels here.
> 
> Thank you Zhenyao. In line 476, the comparison is '<',so here isn't a
overflow.
> However, If max level of a srgb texture is less than full mipmap level, the
> max level mipmap isn't generated.
> I have uploaded a cts test(https://github.com/KhronosGroup/WebGL/pull/2395)
> and a chromium patch(https://codereview.chromium.org/2866663002/#) to follow
> up this issue.

In WebGL2/ES3, base_level can be set by client to any non-negative integers.  So
base_level + 1 can definitely overflow.

Powered by Google App Engine
This is Rietveld 408576698