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

Issue 1505343003: Updating texture validation to account for sampler objects in ES3 (Closed)

Created:
5 years ago by bajones
Modified:
4 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org, Geoff Lang, Jamie Madill
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updating texture validation to account for sampler objects in ES3 BUG=563613 Committed: https://crrev.com/838ca1836eae1357a3b9135e808266d7d28bd3fa Cr-Commit-Position: refs/heads/master@{#371062} Committed: https://crrev.com/7fd547659babda857da554a4d4514df0779aeb74 Cr-Commit-Position: refs/heads/master@{#372187}

Patch Set 1 #

Patch Set 2 : Fixed compile issue in tests #

Patch Set 3 : Fixed DCHECK that was causing bots to fail #

Total comments: 2

Patch Set 4 : Simplifying validation flow as suggested by zmo@ #

Patch Set 5 : Fixed a couple of unnecessary changes #

Total comments: 6

Patch Set 6 : Addressed most of piman@'s feedback. #

Total comments: 6

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Removed early out on !HasImages() #

Patch Set 9 : Fixed unittest that was checking the wrong value #

Patch Set 10 : Fixed issue on devices without TEXTURE_FLOAT_LINEAR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -240 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 6 chunks +29 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/sampler_manager.h View 1 2 3 4 5 6 3 chunks +29 lines, -19 lines 0 comments Download
M gpu/command_buffer/service/sampler_manager.cc View 3 chunks +21 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/texture_definition.cc View 1 2 3 4 5 6 2 chunks +8 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 4 5 6 7 8 9 chunks +26 lines, -25 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 4 5 6 7 8 9 15 chunks +71 lines, -107 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 3 4 5 6 7 8 30 chunks +8 lines, -57 lines 0 comments Download

Messages

Total messages: 60 (20 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343003/1
5 years ago (2015-12-09 00:14:54 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/40495)
5 years ago (2015-12-09 00:44:18 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343003/20001
5 years ago (2015-12-09 22:45:25 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/90927)
5 years ago (2015-12-09 23:23:40 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343003/40001
5 years ago (2015-12-11 18:36:42 UTC) #10
bajones
I feel like this could be a bit better architected, but I was trying to ...
5 years ago (2015-12-11 18:39:28 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 19:58:53 UTC) #14
Zhenyao Mo
https://codereview.chromium.org/1505343003/diff/40001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/1505343003/diff/40001/gpu/command_buffer/service/texture_manager.cc#newcode301 gpu/command_buffer/service/texture_manager.cc:301: Texture::Texture(GLuint service_id, bool is_es3_enabled) Per our offline discussion, I ...
5 years ago (2015-12-11 20:18:54 UTC) #15
bajones
On 2015/12/11 20:18:54, Zhenyao Mo wrote: > Per our offline discussion, I suggest we don't ...
5 years ago (2015-12-11 22:35:07 UTC) #16
piman
https://codereview.chromium.org/1505343003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (left): https://codereview.chromium.org/1505343003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#oldcode7659 gpu/command_buffer/service/gles2_cmd_decoder.cc:7659: if (!texture_manager()->HaveUnrenderableTextures() && This early exit is pretty important ...
5 years ago (2015-12-14 14:04:14 UTC) #17
bajones
https://codereview.chromium.org/1505343003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (left): https://codereview.chromium.org/1505343003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#oldcode7659 gpu/command_buffer/service/gles2_cmd_decoder.cc:7659: if (!texture_manager()->HaveUnrenderableTextures() && On 2015/12/14 14:04:14, piman (in KST ...
5 years ago (2015-12-14 17:40:39 UTC) #18
bajones
Addressed the rest of piman@'s feedback in the latest patch.
5 years ago (2015-12-14 22:19:11 UTC) #19
Zhenyao Mo
https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7663 gpu/command_buffer/service/gles2_cmd_decoder.cc:7663: if (!texture_manager()->HaveImages()) { This is wrong. Now we can't ...
5 years ago (2015-12-14 22:48:33 UTC) #20
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7663 gpu/command_buffer/service/gles2_cmd_decoder.cc:7663: if (!texture_manager()->HaveImages()) { On 2015/12/14 22:48:33, Zhenyao Mo wrote: ...
5 years ago (2015-12-14 23:22:44 UTC) #21
Zhenyao Mo
https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7663 gpu/command_buffer/service/gles2_cmd_decoder.cc:7663: if (!texture_manager()->HaveImages()) { On 2015/12/14 23:22:44, Ken Russell wrote: ...
5 years ago (2015-12-14 23:58:17 UTC) #22
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1505343003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7663 gpu/command_buffer/service/gles2_cmd_decoder.cc:7663: if (!texture_manager()->HaveImages()) { On 2015/12/14 23:58:17, Zhenyao Mo wrote: ...
5 years ago (2015-12-15 00:27:21 UTC) #23
piman
Ideally this validation would be done on binds and changes, rather than draws ("pay for ...
5 years ago (2015-12-15 07:36:42 UTC) #24
Ken Russell (switch to Gerrit)
On 2015/12/15 07:36:42, piman (in KST timezone) wrote: > Ideally this validation would be done ...
5 years ago (2015-12-16 00:30:41 UTC) #25
piman
On Wed, Dec 16, 2015 at 9:30 AM, <kbr@chromium.org> wrote: > On 2015/12/15 07:36:42, piman ...
5 years ago (2015-12-16 07:18:48 UTC) #27
piman
+vmiura who can point at how to profile the command buffer code, especially on Android ...
5 years ago (2015-12-16 07:24:17 UTC) #29
vmiura
> +vmiura who can point at how to profile the command buffer code, especially on ...
5 years ago (2015-12-16 22:55:32 UTC) #30
bajones
Took me a while to get around to doing the benchmark, sorry. Had a lot ...
4 years, 11 months ago (2016-01-15 23:25:19 UTC) #31
bajones
Sorry, should have explained: the three times are from the three separate runs I did ...
4 years, 11 months ago (2016-01-15 23:26:22 UTC) #32
bajones
On 2016/01/15 23:26:22, bajones wrote: > Sorry, should have explained: the three times are from ...
4 years, 11 months ago (2016-01-20 00:03:28 UTC) #33
piman
https://codereview.chromium.org/1505343003/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1505343003/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7597 gpu/command_buffer/service/gles2_cmd_decoder.cc:7597: if (!texture_manager()->HaveImages()) { Hmm, actually, don't you need to ...
4 years, 11 months ago (2016-01-20 01:14:02 UTC) #34
bajones
Fixed the bad if, please take another look. https://codereview.chromium.org/1505343003/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1505343003/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7597 gpu/command_buffer/service/gles2_cmd_decoder.cc:7597: if ...
4 years, 11 months ago (2016-01-20 23:57:55 UTC) #35
piman
On Wed, Jan 20, 2016 at 3:57 PM, <bajones@chromium.org> wrote: > Fixed the bad if, ...
4 years, 11 months ago (2016-01-21 00:37:57 UTC) #36
bajones
On 2016/01/21 00:37:57, piman (Slow to review) wrote: > Are the benchmarks still showing no ...
4 years, 11 months ago (2016-01-21 22:59:09 UTC) #37
piman
LGTM, let's land this, but please watch the perf bots for regressions.
4 years, 11 months ago (2016-01-21 23:04:55 UTC) #38
bajones
On 2016/01/21 23:04:55, piman (Slow to review) wrote: > LGTM, let's land this, but please ...
4 years, 11 months ago (2016-01-21 23:06:14 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343003/140001
4 years, 11 months ago (2016-01-21 23:08:08 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/105395)
4 years, 11 months ago (2016-01-21 23:36:45 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343003/160001
4 years, 11 months ago (2016-01-22 21:21:45 UTC) #46
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 11 months ago (2016-01-22 22:38:04 UTC) #48
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/838ca1836eae1357a3b9135e808266d7d28bd3fa Cr-Commit-Position: refs/heads/master@{#371062}
4 years, 11 months ago (2016-01-22 22:39:05 UTC) #50
tapted
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1630263002/ by tapted@chromium.org. ...
4 years, 11 months ago (2016-01-24 23:20:08 UTC) #51
bajones
Figured out the Android failures. There was a subtle change to the validation logic for ...
4 years, 10 months ago (2016-01-28 21:15:09 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343003/180001
4 years, 10 months ago (2016-01-28 21:15:57 UTC) #56
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-01-28 22:40:21 UTC) #58
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 22:41:31 UTC) #60
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/7fd547659babda857da554a4d4514df0779aeb74
Cr-Commit-Position: refs/heads/master@{#372187}

Powered by Google App Engine
This is Rietveld 408576698