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

Issue 1726303002: Added initial Vulkan build files as well as a basic implementation file. (Closed)

Created:
4 years, 10 months ago by David Yen
Modified:
4 years, 9 months ago
Reviewers:
Nico, sohanjg, piman
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

Added initial Vulkan build files as well as a basic implementation file. As a first step in experimenting with Vulkan in Chromium, this CL adds GN rules to build and link with Vulkan under the GN variable "enable_vulkan". Currently we require users to have the Vulkan SDK installed, so the changes will not link unless a user has properly installed the SDK. R=piman@chromium.org BUG=582558 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/2ce3e05ca555d4eb8f6efc5231a2ac111e91f666 Cr-Commit-Position: refs/heads/master@{#380210}

Patch Set 1 #

Total comments: 13

Patch Set 2 : +OWNERS, refactored to functions #

Patch Set 3 : restructued vulkan_implementation, use vkGetPhysicalDeviceXlibPresentationSupportKHRFn #

Patch Set 4 : format #

Patch Set 5 : Added temporary xlib loader support until loader properly supports it #

Patch Set 6 : Added queue and global accessors #

Total comments: 8

Patch Set 7 : lazily instantiate vulkan instance, +owner #

Patch Set 8 : removed hack to bypass loader #

Total comments: 9

Patch Set 9 : changed namespace to gpu:: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -1 line) Patch
M build/config/ui.gni View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/gpu/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
A gpu/vulkan/BUILD.gn View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A + gpu/vulkan/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A gpu/vulkan/vulkan_export.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A gpu/vulkan/vulkan_implementation.h View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A gpu/vulkan/vulkan_implementation.cc View 1 2 3 4 5 6 7 8 1 chunk +179 lines, -0 lines 0 comments Download
A gpu/vulkan/vulkan_surface.h View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A gpu/vulkan/vulkan_surface.cc View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (8 generated)
David Yen
4 years, 10 months ago (2016-02-24 01:19:25 UTC) #1
David Yen
+thakis@ I thought about uploading a CL after we have an actual window drawing, but ...
4 years, 10 months ago (2016-02-24 01:21:01 UTC) #3
Nico
Can you also add a ui/vulkan/OWNERS? What's the plan for tests? I guess since no ...
4 years, 10 months ago (2016-02-24 01:28:57 UTC) #4
piman
https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc File ui/vulkan/vulkan_implementation.cc (right): https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc#newcode61 ui/vulkan/vulkan_implementation.cc:61: if (queue_properties[n].queueFlags & VK_QUEUE_GRAPHICS_BIT) { We'll probably also want ...
4 years, 10 months ago (2016-02-24 01:52:13 UTC) #5
sohanjg
https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc File ui/vulkan/vulkan_implementation.cc (right): https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc#newcode49 ui/vulkan/vulkan_implementation.cc:49: sorry for the intrusion, but do we not want ...
4 years, 10 months ago (2016-02-24 07:24:08 UTC) #7
David Yen
https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc File ui/vulkan/vulkan_implementation.cc (right): https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc#newcode49 ui/vulkan/vulkan_implementation.cc:49: On 2016/02/24 07:24:08, sohanjg wrote: > sorry for the ...
4 years, 10 months ago (2016-02-25 00:27:37 UTC) #8
piman
Oh, also, maybe let's put vulkan into gpu/, it's not really directly related to ui. ...
4 years, 10 months ago (2016-02-25 06:49:44 UTC) #9
David Yen
https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc File ui/vulkan/vulkan_implementation.cc (right): https://codereview.chromium.org/1726303002/diff/1/ui/vulkan/vulkan_implementation.cc#newcode16 ui/vulkan/vulkan_implementation.cc:16: static VkDevice vk_device; On 2016/02/25 06:49:44, piman - OOO ...
4 years, 9 months ago (2016-03-01 19:54:10 UTC) #11
piman
https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/OWNERS File gpu/vulkan/OWNERS (left): https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/OWNERS#oldcode1 gpu/vulkan/OWNERS:1: kbr@chromium.org Please add yourself here :) https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/vulkan_implementation.cc File gpu/vulkan/vulkan_implementation.cc ...
4 years, 9 months ago (2016-03-04 21:07:09 UTC) #12
David Yen
https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/OWNERS File gpu/vulkan/OWNERS (left): https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/OWNERS#oldcode1 gpu/vulkan/OWNERS:1: kbr@chromium.org On 2016/03/04 21:07:09, piman - OOO back 2016-03-04 ...
4 years, 9 months ago (2016-03-04 22:12:28 UTC) #13
piman
https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/vulkan_implementation.cc File gpu/vulkan/vulkan_implementation.cc (right): https://codereview.chromium.org/1726303002/diff/100001/gpu/vulkan/vulkan_implementation.cc#newcode39 gpu/vulkan/vulkan_implementation.cc:39: static VulkanProcs vulkan_procs; On 2016/03/04 22:12:28, David Yen wrote: ...
4 years, 9 months ago (2016-03-05 00:11:26 UTC) #14
David Yen
I also added the creation of the queue just to make merging with my dependent ...
4 years, 9 months ago (2016-03-07 23:33:32 UTC) #15
piman
lgtm
4 years, 9 months ago (2016-03-08 00:14:20 UTC) #16
David Yen
On 2016/03/08 00:14:20, piman wrote: > lgtm Thanks! thakis@, do you have any more comments?
4 years, 9 months ago (2016-03-08 00:20:59 UTC) #19
David Yen
On 2016/03/08 00:20:59, David Yen wrote: > On 2016/03/08 00:14:20, piman wrote: > > lgtm ...
4 years, 9 months ago (2016-03-09 01:24:24 UTC) #20
Nico
Sorry, I stopped paying attention when this moved out of ui. Now that I look ...
4 years, 9 months ago (2016-03-09 02:43:33 UTC) #21
piman
On Tue, Mar 8, 2016 at 6:43 PM, <thakis@chromium.org> wrote: > Sorry, I stopped paying ...
4 years, 9 months ago (2016-03-09 03:08:20 UTC) #22
David Yen
https://codereview.chromium.org/1726303002/diff/140001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/1726303002/diff/140001/content/gpu/gpu_child_thread.cc#newcode209 content/gpu/gpu_child_thread.cc:209: gfx::VulkanSurface::InitializeOneOff(); On 2016/03/09 02:43:33, Nico wrote: > shouldn't this ...
4 years, 9 months ago (2016-03-09 18:44:49 UTC) #23
Nico
lgtm
4 years, 9 months ago (2016-03-09 19:13:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1726303002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1726303002/160001
4 years, 9 months ago (2016-03-09 20:01:41 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-09 21:04:01 UTC) #28
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 21:05:23 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/2ce3e05ca555d4eb8f6efc5231a2ac111e91f666
Cr-Commit-Position: refs/heads/master@{#380210}

Powered by Google App Engine
This is Rietveld 408576698