-
Notifications
You must be signed in to change notification settings - Fork 162
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
Any reason for not enabling VK_EXT_mesh_shader taskShader feature? (used optionally for Alan Wake2 under VKD3D) #341
Comments
Also trying to run amdvlk with Alan Wake 2. (Mesa works, but there are some minor texture issues when using mesh shaders, and when disabling mesh shaders, it works fine, at 50% fps - HansKristian-Work/vkd3d-proton#1754 and https://gitlab.freedesktop.org/mesa/mesa/-/issues/10060 ; at the moment unclear if issue with vkd3d, game, or mesa). Indeed, taskShader is not advertised:
Using today's amdvlk |
When starting Alan Wake 2, with this I got a popup with a message:
The game does start, menu works, and loading works, loading finished, but entering the game, it crashes/exits. I had gdb attached, and unfortunately it is not helpful:
|
There is some ongoing work as I know so this feature has not been enabled. |
Task shaders are supported by AMDVLK, but it is conditional on certain kernel and firmware features. Please see PAL's amdgpuDevice.{h,cpp} for details. The reason for this is that:
|
@nhaehnle many thanks for clarifying..
as supportImplicitPrimitiveShader is ok since mesh shader checks already check: so I have two questions..
and in the code I see, for RDNA2:
and for RDNA3 I see:
I have RDNA2, so how to know if the "pfpUcodeVersion" on my system is good enough i.e >=95 for:
even cloning linux firmware git which has latest amdgpu firmware or even copying/extracting files from latest AMDGPU Pro driver like 23.40.2
anyway there is a way to forcely enable "supportsGangSubmit"? and skipping the kernel support check.. like RADV does.. for people who want to try even if "systems hangs".. the code I see:
|
I believe UMR shows this in GUI mode, or you can build your own driver and look in the debugger? :) I haven't checked this myself, but the latest linux-firmware really ought to be sufficient.
No. And yeah, it's a fair point that having such a debug/developer override based on an environment variable might be helpful. |
With the basekit from Radeon™ Software for Linux® 23.40.2 Release Notes | AMD and amdvlk2024.Q1.2, we see the task shaders support is exposed. |
thanks for confirmation!! |
@nhaehnle thanks for info.. still not getting task shaders reported..
thanks!, I built latest UMR 1.09 and seeing with Ubuntu noble firmware which currently is up to Februray'24: and with AMD 23.40.2 firmware: seeing
and from screenshoots seems PFP firmware version is 0xe so well below 95 required.. any hint, help @jinjianrong .. |
small update..
I see I'm on 6.8 so OK! anyway I compiled driver by myself and see:
so seems the problem is in firmware as UMRGUI showed:
|
|
thanks for sharing the info @jinjianrong ! |
The ucode version check for task shader enablement is revised in 2024.Q2.1. The change will be propagated to future closed source Vulkan driver |
thanks! seems working now! |
Hi,
thought it was because I'm testing on the Zen4 iGPU (gfx1036 RDNA2).. but seems even the latest big RDNA3 GPUs have it disabled..
RDNA2:
http://vulkan.gpuinfo.org/displayreport.php?id=25275#features_extensions
RDNA3:
http://vulkan.gpuinfo.org/displayreport.php?id=23339#features_extensions
of course RADV exposes it, compare on same RDNA2 hardware:
http://vulkan.gpuinfo.org/compare.php?reports=25275,25276#features_extensions
so question is, are you working/interested on enabling taskShader feature? specially now that work on older GPUs have been removed..
as said it before, in :
#324
without it VKD3D should not expose mesh shaders and without it latest games using mesh shaders like Alan Wake 2 can't make use of it for greater perf..
thanks..
The text was updated successfully, but these errors were encountered: