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

Issue 1022603002: gpu: Measure texture uploads with glTexSubImage2D and glTexImage2D. (Closed)

Created:
5 years, 9 months ago by Daniele Castagna
Modified:
5 years, 9 months ago
Reviewers:
reveman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Measure texture uploads with glTexSubImage2D and glTexImage2D. glTexImage2D and glTexSubImage2D could have different performance properties. With this patch we benchmark both of these upload techniques. When using glTexSubImage2D the texture storage is specified with glTexStorage2D when available, or glTexImage2D passing an empty pointer as data. BUG=423481 Committed: https://crrev.com/1b9c0f6571baefe70dad41d504cbe3136ce41ae4 Cr-Commit-Position: refs/heads/master@{#321300}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reuse the same gl texture. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -35 lines) Patch
M gpu/perftests/texture_upload_perftest.cc View 1 16 chunks +87 lines, -35 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Daniele Castagna
5 years, 9 months ago (2015-03-18 20:42:46 UTC) #5
reveman
https://codereview.chromium.org/1022603002/diff/60001/gpu/perftests/texture_upload_perftest.cc File gpu/perftests/texture_upload_perftest.cc (right): https://codereview.chromium.org/1022603002/diff/60001/gpu/perftests/texture_upload_perftest.cc#newcode304 gpu/perftests/texture_upload_perftest.cc:304: glTexStorage2DEXT(GL_TEXTURE_2D, 1, GLFormatToStorageFormat(format), is this called for each upload? ...
5 years, 9 months ago (2015-03-18 22:32:34 UTC) #6
Daniele Castagna
https://codereview.chromium.org/1022603002/diff/60001/gpu/perftests/texture_upload_perftest.cc File gpu/perftests/texture_upload_perftest.cc (right): https://codereview.chromium.org/1022603002/diff/60001/gpu/perftests/texture_upload_perftest.cc#newcode304 gpu/perftests/texture_upload_perftest.cc:304: glTexStorage2DEXT(GL_TEXTURE_2D, 1, GLFormatToStorageFormat(format), On 2015/03/18 at 22:32:34, reveman wrote: ...
5 years, 9 months ago (2015-03-19 00:25:32 UTC) #7
reveman
https://codereview.chromium.org/1022603002/diff/60001/gpu/perftests/texture_upload_perftest.cc File gpu/perftests/texture_upload_perftest.cc (right): https://codereview.chromium.org/1022603002/diff/60001/gpu/perftests/texture_upload_perftest.cc#newcode304 gpu/perftests/texture_upload_perftest.cc:304: glTexStorage2DEXT(GL_TEXTURE_2D, 1, GLFormatToStorageFormat(format), On 2015/03/19 00:25:32, Daniele Castagna wrote: ...
5 years, 9 months ago (2015-03-19 02:01:35 UTC) #8
Daniele Castagna
PTAL. It now uses the same texture id when it uploads and draws different textures. ...
5 years, 9 months ago (2015-03-19 03:34:01 UTC) #9
Daniele Castagna
PTAL. It now uses the same texture id when it uploads and draws different textures. ...
5 years, 9 months ago (2015-03-19 03:34:01 UTC) #10
reveman
lgtm
5 years, 9 months ago (2015-03-19 04:02:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1022603002/80001
5 years, 9 months ago (2015-03-19 04:34:37 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:80001)
5 years, 9 months ago (2015-03-19 05:10:24 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1b9c0f6571baefe70dad41d504cbe3136ce41ae4 Cr-Commit-Position: refs/heads/master@{#321300}
5 years, 9 months ago (2015-03-19 05:11:09 UTC) #15
sullivan
5 years, 9 months ago (2015-03-19 13:50:24 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:80001) has been created in
https://codereview.chromium.org/1011343005/ by sullivan@chromium.org.

The reason for reverting is: This is causing gpu_perftests to fail on android
perfbots. See http://crbug.com/468748.

Powered by Google App Engine
This is Rietveld 408576698