New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 618516 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 14
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Add native YV12 pixmap support to Chromium

Project Member Reported by dcasta...@chromium.org, Jun 9 2016

Issue description

Chromium needs to be able to import and display YV12 buffers coming from ARC++.

Additionally, being able to allocate and map YV12 buffer could be useful for media (libvpx could decode directly into a YV12 buffer).
 
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fa3d958da6046d3ba59724b98befed3f1cca1430

commit fa3d958da6046d3ba59724b98befed3f1cca1430
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Jun 09 17:25:57 2016

gl: Test YV12 buffer drm import.

Adds a test to check that importing YV12 format created via drm works
and that it is possible to draw after creating an EGL image backed by
them.

BUG= 618516 
TEST=gl_unittests on samus.

Review-Url: https://codereview.chromium.org/2052543004
Cr-Commit-Position: refs/heads/master@{#398931}

[modify] https://crrev.com/fa3d958da6046d3ba59724b98befed3f1cca1430/ui/gl/BUILD.gn
[add] https://crrev.com/fa3d958da6046d3ba59724b98befed3f1cca1430/ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
[modify] https://crrev.com/fa3d958da6046d3ba59724b98befed3f1cca1430/ui/gl/test/gl_image_test_support.cc

Project Member

Comment 3 by bugdroid1@chromium.org, Jun 10 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc

commit 2d7fb78b874098b410bffe3c73cf6c3e392ba3dc
Author: dcastagna <dcastagna@chromium.org>
Date: Fri Jun 10 20:15:53 2016

exo: Add support for importing YVU_420 buffers.

This CL adds support for importing YVU_420 buffers via the
wayland drm and dmabuf interfaces into Exo.

BUG= 618516 

Review-Url: https://codereview.chromium.org/2046743002
Cr-Commit-Position: refs/heads/master@{#399260}

[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/display.cc
[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/display.h
[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/display_unittest.cc
[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/wayland/server.cc

Project Member

Comment 4 by bugdroid1@chromium.org, Jun 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2db83c7ef2e6fd558afb88c3017dc732f369da02

commit 2db83c7ef2e6fd558afb88c3017dc732f369da02
Author: dcastagna <dcastagna@chromium.org>
Date: Mon Jun 13 23:33:22 2016

More YUV_420 buffers support.

This CL adds:
- YVU_420 to the list of native formats supported by
  BrowserGPuMemoryBufferManager.
- YVU_420 to the list of native formats supported by
  ClientNativePixmapFactory.
- GL_RGB_YCRCB_420_CHROMIUM as a valid internal format when creating
  an image.
- A logging statement in exo::Buffer in case an image fails to be
  created.

Additionally, this CL let GbmPixmap::ExportHandle to export buffers
with less fds than planes as discussed in crrev.com/2055483002

BUG= crbug.com/618516 
TEST=Manually tested creating a fake YV12 buffer in exo::Display::CreateLinuxDMABufBuffer.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2052003006
Cr-Commit-Position: refs/heads/master@{#399597}

[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/components/exo/buffer.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/gpu/command_buffer/client/gles2_implementation.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/ui/ozone/platform/drm/gpu/gbm_buffer.cc

Hi, I have a question about this test.

It is failing on Linux Desktop with GN (it does not to be include in GYP at all), e.g.
https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/184706/steps/gl_unittests%20%28with%20patch%29%20on%20Ubuntu-12.04

Normally we don't run unit tests on target hardware. Do we run gl_unittests somewhere other than Linux Desktop (with chromeos=1) ?

The failure we are seeing is a crash:

[ RUN      ] GLImageOzoneNativePixmapDrm/GLImageBindTest/0.BindTexImage
[32004:32004:0613/172359:543448650645:FATAL:gl_image_ozone_native_pixmap_drm_unittest.cc(50)] Check failed: ret. 
#0 0x00000093389e base::debug::StackTrace::StackTrace()
#1 0x00000093d42a logging::LogMessage::~LogMessage()
#2 0x00000043c113 gl::(anonymous namespace)::GLImageOzoneNativePixmapDrmTestDelegate::CreateSolidColorImage()
#3 0x00000043cd71 gl::gtest_case_GLImageBindTest_::BindTexImage<>::TestBody()
#4 0x000000988a67 testing::Test::Run()

That test depends explicitly on drm and should not run on that bot. My intention was to build it only on a real cros device for now. Let me fix that.

The plan is to run those in the cros lab eventually.


OK. I'm pretty sure we don't do that currently (run gl_unittests on a target device). Mostly unit tests do not run on target devices because they are not dependent on what platform they are run on, but gl_unittests does seem like it would be an exception.

I think that what you want to test for is target_os == "chromeos", e.g.:

    if (target_os == "chromeos" && target_cpu != "arm") {

Instead of

    if (is_chromeos && target_cpu != "arm") {

Since is_chromeos refers to the UI and is true on linux chromeos.

If we can fix that quickly that would help get the linux chromeos ozone builder converted to GN sooner so we will catch these in the CQ, thanks!

Project Member

Comment 8 by bugdroid1@chromium.org, Jun 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a6a013030f55b0a53f07fbae950f5f4d1ab3b774

commit a6a013030f55b0a53f07fbae950f5f4d1ab3b774
Author: dcastagna <dcastagna@chromium.org>
Date: Tue Jun 14 02:58:51 2016

gl: Build drm dependent test only when target_os == "chromeos".

The original check we used was |is_chromeos| that is true also
when the ChromeOS UI is built on linux.

More info about the issue here:
https://bugs.chromium.org/p/chromium/issues/detail?id=618516#c5

BUG= 618516 

Review-Url: https://codereview.chromium.org/2060753004
Cr-Commit-Position: refs/heads/master@{#399648}

[modify] https://crrev.com/a6a013030f55b0a53f07fbae950f5f4d1ab3b774/ui/gl/BUILD.gn

Project Member

Comment 10 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fa3d958da6046d3ba59724b98befed3f1cca1430

commit fa3d958da6046d3ba59724b98befed3f1cca1430
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Jun 09 17:25:57 2016

gl: Test YV12 buffer drm import.

Adds a test to check that importing YV12 format created via drm works
and that it is possible to draw after creating an EGL image backed by
them.

BUG= 618516 
TEST=gl_unittests on samus.

Review-Url: https://codereview.chromium.org/2052543004
Cr-Commit-Position: refs/heads/master@{#398931}

[modify] https://crrev.com/fa3d958da6046d3ba59724b98befed3f1cca1430/ui/gl/BUILD.gn
[add] https://crrev.com/fa3d958da6046d3ba59724b98befed3f1cca1430/ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
[modify] https://crrev.com/fa3d958da6046d3ba59724b98befed3f1cca1430/ui/gl/test/gl_image_test_support.cc

Project Member

Comment 11 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc

commit 2d7fb78b874098b410bffe3c73cf6c3e392ba3dc
Author: dcastagna <dcastagna@chromium.org>
Date: Fri Jun 10 20:15:53 2016

exo: Add support for importing YVU_420 buffers.

This CL adds support for importing YVU_420 buffers via the
wayland drm and dmabuf interfaces into Exo.

BUG= 618516 

Review-Url: https://codereview.chromium.org/2046743002
Cr-Commit-Position: refs/heads/master@{#399260}

[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/display.cc
[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/display.h
[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/display_unittest.cc
[modify] https://crrev.com/2d7fb78b874098b410bffe3c73cf6c3e392ba3dc/components/exo/wayland/server.cc

Project Member

Comment 12 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2db83c7ef2e6fd558afb88c3017dc732f369da02

commit 2db83c7ef2e6fd558afb88c3017dc732f369da02
Author: dcastagna <dcastagna@chromium.org>
Date: Mon Jun 13 23:33:22 2016

More YUV_420 buffers support.

This CL adds:
- YVU_420 to the list of native formats supported by
  BrowserGPuMemoryBufferManager.
- YVU_420 to the list of native formats supported by
  ClientNativePixmapFactory.
- GL_RGB_YCRCB_420_CHROMIUM as a valid internal format when creating
  an image.
- A logging statement in exo::Buffer in case an image fails to be
  created.

Additionally, this CL let GbmPixmap::ExportHandle to export buffers
with less fds than planes as discussed in crrev.com/2055483002

BUG= crbug.com/618516 
TEST=Manually tested creating a fake YV12 buffer in exo::Display::CreateLinuxDMABufBuffer.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2052003006
Cr-Commit-Position: refs/heads/master@{#399597}

[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/components/exo/buffer.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/gpu/command_buffer/client/gles2_implementation.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
[modify] https://crrev.com/2db83c7ef2e6fd558afb88c3017dc732f369da02/ui/ozone/platform/drm/gpu/gbm_buffer.cc

Project Member

Comment 13 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a6a013030f55b0a53f07fbae950f5f4d1ab3b774

commit a6a013030f55b0a53f07fbae950f5f4d1ab3b774
Author: dcastagna <dcastagna@chromium.org>
Date: Tue Jun 14 02:58:51 2016

gl: Build drm dependent test only when target_os == "chromeos".

The original check we used was |is_chromeos| that is true also
when the ChromeOS UI is built on linux.

More info about the issue here:
https://bugs.chromium.org/p/chromium/issues/detail?id=618516#c5

BUG= 618516 

Review-Url: https://codereview.chromium.org/2060753004
Cr-Commit-Position: refs/heads/master@{#399648}

[modify] https://crrev.com/a6a013030f55b0a53f07fbae950f5f4d1ab3b774/ui/gl/BUILD.gn

Apologies, comment #7 provided misinformation. We can't actually easily distinguish whether we are building for linux-chromeos vs. for a device. We do run time tests for that (e.g. base::SysInfo::IsRunningOnChromeOS()).

I still think the change in Comment #13 is an improvement, but we will need to actually disable those tests then modify them to test for a valid environment.

Project Member

Comment 15 by bugdroid1@chromium.org, Jun 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/98afc7a88ebf27d0b5e765ab112fbc6778cd3f05

commit 98afc7a88ebf27d0b5e765ab112fbc6778cd3f05
Author: dpranke <dpranke@chromium.org>
Date: Thu Jun 16 19:49:25 2016

Disable remaining tests that fail on the Linux desktop CrOS GN builds.

This CL disables five tests that currently fail on the builders, so that
we can flip the builders from GYP to GN without waiting for them to be
fixed.

R=stevenjb@chromium.org, brettw@chromium.org, dcastagna@chromium.org
BUG= 618516 , 619765,  619784 

Review-Url: https://codereview.chromium.org/2071703002
Cr-Commit-Position: refs/heads/master@{#400235}

[modify] https://crrev.com/98afc7a88ebf27d0b5e765ab112fbc6778cd3f05/chrome/browser/extensions/extension_commands_global_registry_apitest.cc
[modify] https://crrev.com/98afc7a88ebf27d0b5e765ab112fbc6778cd3f05/content/test/ppapi/ppapi_browsertest.cc
[modify] https://crrev.com/98afc7a88ebf27d0b5e765ab112fbc6778cd3f05/ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc

Project Member

Comment 16 by bugdroid1@chromium.org, Jun 24 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0b943317abe42c81792cbb760576906bf39090c0

commit 0b943317abe42c81792cbb760576906bf39090c0
Author: dcastagna <dcastagna@chromium.org>
Date: Fri Jun 24 03:19:36 2016

ozone: Add YV12 to drm_util.cc.

crrev.com/1837703002 changed the way we create GbmBuffer from fds.

The code now looks up FourCC code for a BufferType using drm_util.cc.

This patch adds YV12 to GetFourCCFormatFromBufferFormat and
GetBufferFormatFromFourCCFormat in drm_util.cc.

BUG= 618516 
TEST='gl_unittests --gtest_also_run_disabled_tests' on cyan.

Review-Url: https://codereview.chromium.org/2094863002
Cr-Commit-Position: refs/heads/master@{#401808}

[modify] https://crrev.com/0b943317abe42c81792cbb760576906bf39090c0/ui/ozone/platform/drm/common/drm_util.cc

Project Member

Comment 17 by bugdroid1@chromium.org, Jun 24 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6537917f6f58a3d46d28f01de2a8ca98fb9c1b70

commit 6537917f6f58a3d46d28f01de2a8ca98fb9c1b70
Author: dcastagna <dcastagna@chromium.org>
Date: Fri Jun 24 16:22:50 2016

ui: Fix faulty drm/gbm DCHECKs.

- Remove a DCHECK in gl_image_ozone_native_pixmap_drm_unittest.cc that was
  checking drm permissions. The check is already done during Ozone
  initialization and the one in the test would always fail.

- Relax the check that the number of fds has to be the same as the number of
  planes when creating a gbm buffer.

BUG= 618516 
TEST='gl_unittests --gtest_also_run_disabled_tests' on cyan.

Review-Url: https://codereview.chromium.org/2090343005
Cr-Commit-Position: refs/heads/master@{#401873}

[modify] https://crrev.com/6537917f6f58a3d46d28f01de2a8ca98fb9c1b70/ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
[modify] https://crrev.com/6537917f6f58a3d46d28f01de2a8ca98fb9c1b70/ui/ozone/platform/drm/gpu/gbm_buffer.cc

Project Member

Comment 18 by bugdroid1@chromium.org, Jun 24 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5ca17bcd97e7423c0597626ca957e92926be6e5f

commit 5ca17bcd97e7423c0597626ca957e92926be6e5f
Author: dcastagna <dcastagna@chromium.org>
Date: Fri Jun 24 20:58:14 2016

Add BufferFormat::YVU_420 to the list of forced formats.

On cyan, BrowserGpuMemoryBufferManager::IsNativeGpuMemoryBuffersEnabled
return false and without adding BufferFormat::YVU_420 to the list of
forced native formats, importing a YV12 buffer fails.

TEST=run cts -t android.media.cts.AdaptivePlaybackTest#testH264_earlyEos
BUG= 618516 , b/29534596

Review-Url: https://codereview.chromium.org/2096953002
Cr-Commit-Position: refs/heads/master@{#401966}

[modify] https://crrev.com/5ca17bcd97e7423c0597626ca957e92926be6e5f/content/browser/gpu/browser_gpu_memory_buffer_manager.cc

Cc: j.iso...@samsung.com
Project Member

Comment 20 by sheriffbot@chromium.org, Jul 6 2016

Labels: -M-53 M-54 MovedFrom-53
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 21 by bugdroid1@chromium.org, Aug 24 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2882fe0cad7e41d771ae1e9f20420d4a6c26b505

commit 2882fe0cad7e41d771ae1e9f20420d4a6c26b505
Author: dcastagna <dcastagna@chromium.org>
Date: Wed Aug 24 22:21:59 2016

ozone: GbmBuffer::CreateBuffer multi-plane support.

GbmBuffer::CreateBuffer assumed that the buffers allocated by minigbm
contained only one plane.

This patch let GbmBuffer::CreateBuffer create multi-planar buffers.

BUG= 618516 
TEST=gl_unittests. crrev.com/2262353002 for a YUV test.

Review-Url: https://codereview.chromium.org/2279553002
Cr-Commit-Position: refs/heads/master@{#414172}

[modify] https://crrev.com/2882fe0cad7e41d771ae1e9f20420d4a6c26b505/ui/ozone/platform/drm/gpu/gbm_buffer.cc

Project Member

Comment 22 by bugdroid1@chromium.org, Sep 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cdb357b81306f5e8170027d13d931b8e26140405

commit cdb357b81306f5e8170027d13d931b8e26140405
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Sep 22 03:24:19 2016

Add ClientNativePixmap multi-planar support.

ClientNativePixmap, that lets clients map pixmaps in user space,
always assumed a pixmap contained only one plane.

This CL adds support for multiple-planes.

BUG= 618516 
TBR=posciak
TEST=gl_unittests on samus.
CQ_INCLUDE_TRYBOTS=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/2272153002
Cr-Commit-Position: refs/heads/master@{#420251}

[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/chrome/gpu/arc_gpu_video_decode_accelerator.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/components/exo/wayland/server.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/media/gpu/video_decode_accelerator_unittest.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/gfx/native_pixmap_handle.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/gfx/native_pixmap_handle.h
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/platform/drm/gpu/gbm_buffer.cc
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/platform/drm/gpu/gbm_buffer.h
[modify] https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405/ui/ozone/public/client_native_pixmap.h

Project Member

Comment 23 by bugdroid1@chromium.org, Sep 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6

commit f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Sep 22 23:36:57 2016

Revert of Add ClientNativePixmap multi-planar support. (patchset #8 id:160001 of https://codereview.chromium.org/2272153002/ )

Reason for revert:
This makes samus stuck at the Chrome logo.

Original issue's description:
> Add ClientNativePixmap multi-planar support.
>
> ClientNativePixmap, that lets clients map pixmaps in user space,
> always assumed a pixmap contained only one plane.
>
> This CL adds support for multiple-planes.
>
> BUG= 618516 
> TBR=posciak
> TEST=gl_unittests on samus.
> CQ_INCLUDE_TRYBOTS=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
>
> Committed: https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405
> Cr-Commit-Position: refs/heads/master@{#420251}

TBR=ccameron@chromium.org,dnicoara@chromium.org,posciak@chromium.org,reveman@chromium.org,spang@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 618516 

Review-Url: https://codereview.chromium.org/2361023003
Cr-Commit-Position: refs/heads/master@{#420501}

[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/chrome/gpu/arc_gpu_video_decode_accelerator.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/components/exo/wayland/server.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/media/gpu/video_decode_accelerator_unittest.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/gfx/native_pixmap_handle.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/gfx/native_pixmap_handle.h
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/platform/drm/gpu/gbm_buffer.cc
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/platform/drm/gpu/gbm_buffer.h
[modify] https://crrev.com/f6d9dbe12ab44cd7c99e07e57ba97aa7c0ba29f6/ui/ozone/public/client_native_pixmap.h

Project Member

Comment 24 by bugdroid1@chromium.org, Sep 28 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3085817730f8c6eacc1b6f02e78a712aefcaaacd

commit 3085817730f8c6eacc1b6f02e78a712aefcaaacd
Author: dcastagna <dcastagna@chromium.org>
Date: Wed Sep 28 16:43:19 2016

Add ClientNativePixmap multi-planar support.

ClientNativePixmap, that lets clients map pixmaps in user space,
always assumed a pixmap contained only one plane.

This CL adds support for multiple-planes.

BUG= 618516 
TBR=posciak
TEST=gl_unittests on samus.
CQ_INCLUDE_TRYBOTS=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

Committed: https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405
Review-Url: https://codereview.chromium.org/2272153002
Cr-Original-Commit-Position: refs/heads/master@{#420251}
Cr-Commit-Position: refs/heads/master@{#421543}

[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/chrome/gpu/arc_gpu_video_decode_accelerator.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/components/exo/wayland/server.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/media/gpu/video_decode_accelerator_unittest.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/gfx/ipc/gfx_param_traits_macros.h
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/gfx/mojo/buffer_types.mojom
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/gfx/mojo/buffer_types_traits.h
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/gfx/mojo/struct_traits_unittest.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/gfx/native_pixmap_handle.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/gfx/native_pixmap_handle.h
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/platform/drm/gpu/gbm_buffer.cc
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/platform/drm/gpu/gbm_buffer.h
[modify] https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd/ui/ozone/public/client_native_pixmap.h

Project Member

Comment 25 by bugdroid1@chromium.org, Sep 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f32c40b79ebcdd5aab1ed0ccd9d7f0a51b3db0d7

commit f32c40b79ebcdd5aab1ed0ccd9d7f0a51b3db0d7
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Sep 29 19:35:33 2016

gl: Add YV12 to bind image unittests.

It is now possible to allocate and map a YV12 buffer in chromium
via minigbm. (https://chromium-review.googlesource.com/c/373048/,
crrev.com/2279553002 and crrev.com/2272153002)

This CL adds YV12 to the list of imagebind tests.

TEST=ozone_gl_unittests --gtest_also_run_disabled_tests on samus
BUG= 618516 

Review-Url: https://codereview.chromium.org/2262353002
Cr-Commit-Position: refs/heads/master@{#421901}

[modify] https://crrev.com/f32c40b79ebcdd5aab1ed0ccd9d7f0a51b3db0d7/ui/ozone/gl/gl_image_ozone_native_pixmap.cc
[modify] https://crrev.com/f32c40b79ebcdd5aab1ed0ccd9d7f0a51b3db0d7/ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc

Project Member

Comment 26 by bugdroid1@chromium.org, Sep 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3224831384773d0ff664bcf27fd946ac6f39697f

commit 3224831384773d0ff664bcf27fd946ac6f39697f
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Sep 29 21:18:27 2016

ozone: Remove GLImageOzoneNativePixmapDrm unittest.

GLImageOzoneNativePixmapDrm was originally added to test scanout for
multi-planar pixmaps (YV12).

At the time there was no support to allocate a YV12 pixmap via minigbm,
nor to map it and use it in chromium, so the test was explcitily using
drm/GEM instead of going trough ozone.

It is now possible to use the standard ozone API to allocate and map
a YV12 pixmap. A test that uses the standard image test templates for
YV12 has also been added to ozone_gl_unittests. (crrev.com/2262353002)

GLImageOzoneNativePixmapDrm can now be removed.

BUG= 618516 

Review-Url: https://codereview.chromium.org/2375013003
Cr-Commit-Position: refs/heads/master@{#421935}

[modify] https://crrev.com/3224831384773d0ff664bcf27fd946ac6f39697f/ui/ozone/gl/BUILD.gn
[delete] https://crrev.com/7409f67d718627b86ba97cecd47d98c9716d4fe8/ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc

Project Member

Comment 27 by bugdroid1@chromium.org, Nov 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cfa58e69b33fff86f7f0f9589b053e7d57204704

commit cfa58e69b33fff86f7f0f9589b053e7d57204704
Author: gurchetansingh <gurchetansingh@chromium.org>
Date: Wed Nov 09 19:28:14 2016

Disable multi-planar import for now

Minigbm incorrectly calculates the plane sizes currently. The API
needs to be changed, so revert this for now.  The plan is to land:

https://chromium-review.googlesource.com/#/c/406485/

and then undo the changes in this commit, and explicitly specify the
plane sizes.

    BUG= chromium:618516 
    TEST=chrome builds

Review-Url: https://codereview.chromium.org/2471413006
Cr-Commit-Position: refs/heads/master@{#431007}

[modify] https://crrev.com/cfa58e69b33fff86f7f0f9589b053e7d57204704/ui/ozone/platform/drm/gpu/gbm_buffer.cc

Project Member

Comment 28 by bugdroid1@chromium.org, Nov 19 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/minigbm/+/2a119342ee6f057b1ec28d1ff6ebd70d42511a3f

commit 2a119342ee6f057b1ec28d1ff6ebd70d42511a3f
Author: Gurchetan Singh <gurchetansingh@chromium.org>
Date: Wed Nov 02 17:40:51 2016

minigbm: Fix incorrect plane import size

We were incorrectly determining the plane size for buffers with
vertical subsampling.  Let's add it here.

BUG= chromium:618516 
TEST=graphics_Gbm still passes

Change-Id: I47f3c01dfd2539fc669a017ecb497d754d29de9f
Reviewed-on: https://chromium-review.googlesource.com/406485
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>

[modify] https://crrev.com/2a119342ee6f057b1ec28d1ff6ebd70d42511a3f/drv.c
[modify] https://crrev.com/2a119342ee6f057b1ec28d1ff6ebd70d42511a3f/helpers.h
[modify] https://crrev.com/2a119342ee6f057b1ec28d1ff6ebd70d42511a3f/drv.h
[modify] https://crrev.com/2a119342ee6f057b1ec28d1ff6ebd70d42511a3f/gbm.c
[modify] https://crrev.com/2a119342ee6f057b1ec28d1ff6ebd70d42511a3f/helpers.c

You started fixing this bug over two years ago. Are you still working on it? You can update the status to "archived", "wontfix", or "closed". You can remove yourself as owner and change status to "untriaged", but if this is still a real bug, please do not sit on it.
Status: Fixed (was: Started)

Sign in to add a comment