-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Microsoft's d3d12 and dozen drivers #26746
Conversation
Pull Request assignmentSubmitter: @FireBurn dev-util/directx-headers: @gentoo/proxy-maint (new package) Linked bugsNo bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment. If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers. In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
1cf09a2
to
8491d92
Compare
local emesonargs=() | ||
|
||
emesonargs+=( | ||
-Dbuild-test=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emesonargs
code is unnecessarily split. It can be:
local emesonargs=(
-Dbuild-test=false
)
</maintainer> | ||
<maintainer type="person"> | ||
<email>sarnex@gentoo.org</email> | ||
<name>Nick Sarnie</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sarnex
See if you want to actually maintain it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd happily put my own name down, but I think it has to be an official maintainer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to drop @sarnex as the maintainer since he hasn't expressed interest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Matt, yeah no interest rn
Although |
When it's devices where in portage you want this, I'll make the necessary changes Absolutely copyed from vulkan-headers, no point reinventing the wheel |
049ba38
to
92d8cbb
Compare
92d8cbb
to
873bdf8
Compare
Need to add a description to |
Ah thanks, I couldn't figure out where that was needing to go |
873bdf8
to
e674339
Compare
@mattst88 how would you feel about me putting you down as the maintainer of the new ebuild, or can I put myself down as a proxy-maintainer? |
Pull request CI reportReport generated at: 2022-08-09 18:46 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
I hope you'll will find it useful microsoft/DirectXShaderCompiler#4178 |
@mattst88 Ping |
This is required to enable the d3d12 and dozen drivers in mesa This enables OpenGL and Vulkan support within WSL Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
e674339
to
e1e448e
Compare
Pull request CI reportReport generated at: 2022-09-04 09:42 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
This adds supoprt for the d3d12 gallium driver and the dozen vulkan driver. It uses the video_cards_microsoft flag It optionally adds in video acceleration if vaapi or vdpau is enabled It's been compiled tested with GCC 12.1 & Clang 14 If building mesa with Clang, directx-headers must be build with clang too, otherwise you'll experience linking errors Signed-off-by: Mike Lothain <mike@fireburn.co.uk>
e1e448e
to
bac7158
Compare
Pull request CI reportReport generated at: 2022-09-04 10:12 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make the changes locally I noted. Thanks for your contribution (and your patience!)
@@ -0,0 +1,30 @@ | |||
# Copyright 1999-2023 Gentoo Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet 2023.
@@ -0,0 +1,30 @@ | |||
# Copyright 1999-2023 Gentoo Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet 2023.
|
||
multilib_src_configure() { | ||
local emesonargs=( | ||
-Dbuild-test=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we disable the tests?
</maintainer> | ||
<maintainer type="person"> | ||
<email>sarnex@gentoo.org</email> | ||
<name>Nick Sarnie</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to drop @sarnex as the maintainer since he hasn't expressed interest.
@@ -25,7 +25,7 @@ SLOT="0" | |||
RESTRICT="!test? ( test )" | |||
|
|||
RADEON_CARDS="r300 r600 radeon radeonsi" | |||
VIDEO_CARDS="${RADEON_CARDS} freedreno intel lima nouveau panfrost v3d vc4 virgl vivante vmware" | |||
VIDEO_CARDS="${RADEON_CARDS} freedreno intel lima microsoft nouveau panfrost v3d vc4 virgl vivante vmware" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to rename VIDEO_CARDS="microsoft"
to VIDEO_CARDS="d3d12"
. I think that's a little clearer.
@@ -225,6 +226,7 @@ pkg_pretend() { | |||
if use vulkan; then | |||
if ! use video_cards_freedreno && | |||
! use video_cards_intel && | |||
! use video_cards_microsoft && | |||
! use video_cards_radeonsi && | |||
! use video_cards_v3d; then | |||
ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain freedreno, intel, radeonsi, or v3d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to list microsoft
here.
@@ -129,6 +129,7 @@ | |||
-video_cards_i965 | |||
-video_cards_intel | |||
-video_cards_iris | |||
-video_cards_microsoft |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to allow this on x86? (I have no idea)
One commit has
while the other has
Definitely run |
This adds support for the d3d12 gallium driver and the dozen vulkan driver. It uses the video_cards_microsoft flag It optionally adds in video acceleration if vaapi or vdpau is enabled It's been compiled tested with GCC 12.1 & Clang 14 If building mesa with Clang, directx-headers must be build with clang too, otherwise you'll experience linking errors Closes: gentoo#26746 Signed-off-by: Mike Lothain <mike@fireburn.co.uk> Signed-off-by: Matt Turner <mattst88@gentoo.org>
These are usable under WSL, but can compile without WSL
The drivers require directx-headers to be built, I had issues building mesa with clang unless these were built with clang too
I'm not sure if video_cards_microsoft needs to be marked or not