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

Issue 1105153003: Avoid EGLImage target texture reuse on PowerVR (Closed)

Created:
5 years, 7 months ago by boliu
Modified:
5 years, 7 months ago
Reviewers:
no sievers
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

Avoid EGLImage target texture reuse on PowerVR This workarounds a memory corruption bug in PowerVR drivers that cause memory corruption. The bug happens when EGLImageTargetTexture2DOES is called on an already defined texture object. Workaround is to always create a new texture id each time. This only works if there are no other code saving the old texture id, and only AsyncPixelTransferDelegateIdle needed to be updated to not do this. BUG=480992 Committed: https://crrev.com/3ad5e7fd1f05b4febb1bcd6837b77ffdb700a6bb Cr-Commit-Position: refs/heads/master@{#327425}

Patch Set 1 #

Patch Set 2 : working? #

Patch Set 3 : workaround+cleanups #

Patch Set 4 : version #

Total comments: 2

Patch Set 5 : comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -13 lines) Patch
M gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc View 1 2 3 4 6 chunks +18 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_definition.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_definition.cc View 1 2 4 chunks +25 lines, -2 lines 2 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
boliu
ptal \o/
5 years, 7 months ago (2015-04-28 22:59:08 UTC) #2
no sievers
lgtm https://codereview.chromium.org/1105153003/diff/60001/gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc File gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc (right): https://codereview.chromium.org/1105153003/diff/60001/gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc#newcode324 gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc:324: &shared_state_, Can you put a comment why we ...
5 years, 7 months ago (2015-04-28 23:23:18 UTC) #3
boliu
comments added
5 years, 7 months ago (2015-04-29 00:02:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1105153003/80001
5 years, 7 months ago (2015-04-29 00:05:37 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-04-29 02:49:40 UTC) #8
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/3ad5e7fd1f05b4febb1bcd6837b77ffdb700a6bb Cr-Commit-Position: refs/heads/master@{#327425}
5 years, 7 months ago (2015-04-29 02:50:29 UTC) #9
no sievers
https://codereview.chromium.org/1105153003/diff/80001/gpu/command_buffer/service/texture_definition.cc File gpu/command_buffer/service/texture_definition.cc (right): https://codereview.chromium.org/1105153003/diff/80001/gpu/command_buffer/service/texture_definition.cc#newcode415 gpu/command_buffer/service/texture_definition.cc:415: Sorry I missed this though we talked about it ...
5 years, 7 months ago (2015-04-29 17:21:30 UTC) #10
boliu
5 years, 7 months ago (2015-04-29 18:22:36 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1105153003/diff/80001/gpu/command_buffer/serv...
File gpu/command_buffer/service/texture_definition.cc (right):

https://codereview.chromium.org/1105153003/diff/80001/gpu/command_buffer/serv...
gpu/command_buffer/service/texture_definition.cc:415: 
On 2015/04/29 17:21:30, sievers wrote:
> Sorry I missed this though we talked about it - but we have to fix it:
> Need to handle the case where old_service_id is currently bound. I think it's
> simple, we just bind the new texture if that is the case.

SG, I'll make the patch.

> 
> I'm also not fully sure about what if the texture is bound to an FBO.
> On the one hand it's the same buffer (egl image), so in that regard it doesn't
> really matter. But maybe I'm missing something that can go wrong, because the
> old and not the new texture really remains the attachment.

So... do nothing for now?

Powered by Google App Engine
This is Rietveld 408576698