GPUOpen-Drivers / AMDVLK Public
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
vk_ext_transform_feedback & VK_EXT_SAMPLER_FILTER_MINMAX broken on GCN POLARIS #251
Comments
|
+1 |
|
@RinMaru could you provide a Renderdoc trace for us to reproduce the issue? could you provide two images to show the issue: one with VK_EXT_SAMPLER_FILTER_MINMAX broken and one with VK_EXT_SAMPLER_FILTER_MINMAX working? |
|
Since I have no clue of anything that uses the extension outside an emulator I can't test. If there's a tool to test the offending extension then I'll use it Otherwise I guess I'll close this |
|
@RinMaru which emulator do you see the issue on? Yuzu? |
Yes. Since then the sampler ext has been disabled as a workaround. Transform feedback is still an issue though. |
|
@jinjianrong Hi I'm a yuzu developer. We have prepared a test example https://drive.google.com/file/d/1oTUR3evy49TiBYC2dpNyRMSPhZCE7m89/view?usp=sharing it has a renderdoc capture done on windows(since you guys share some codebase) and a homebrew we wrote. You can test it with our emulator: https://github.com/yuzu-emu/yuzu-mainline/releases if you need an exact linux capture. If you want I can send you an Intel/NVIDIA example so you have a reference solution. About VK_EXT_SAMPLER_FILTER_MINMAX. We use nouveau and deko3d to produce homebrew for Switch, I don't think I have the option there for this feature and I can't provide a capture from a game as that contains copyright material. In general, it's broken in GCN 4, 3, 2, 1 on Windows proprietary driver and RADV/Mesa. EDIT: As a side note, I need to debug a TDR on AMD GPUs. It happens on every AMD GPU, every driver. I tried Radeon Profiler but didn't help, What's the best way to debug this? |
umr can be used for debugging (ssh into the hanging machine and run umr). If a shader is hanging, People in the |
|
@FernandoS27 what GPU do you use to capture the renderdoc trace? what issue are you seeing with the trace? This is not for the VK_EXT_SAMPLER_FILTER_MINMAX issue, right? |
I captured using an RX 6800M - windows 10, I can also provide Vega and GCN4(RX 570) Captures if needed as well as Linux captures. In general, transform feedback doesn't seem to write anything. The capture is a particle emitter, it should generate a bunch of falling particles. about the VK_EXT_SAMPLER_FILTER_MINMAX , I'll see how I can make a test. I may have to make one outside of emu (meaning writing all the Vulkan boilerplate code sight). I'll make an issue myself when I have a reproducible test for that. |
|
Here#s a capture in RADV (Mesa) where Transform feedback works: https://drive.google.com/file/d/1ydXnxOwQJ0wDNefyWr_AIhjeCqsgINYn/view?usp=sharing Same GPU: RX 6800M, Ubuntu 21.04 |
|
@FernandoS27 we are seeing VK_ERROR_OUT_OF_HOST_MEMORY error message when open the renderdoc trace in https://drive.google.com/file/d/1oTUR3evy49TiBYC2dpNyRMSPhZCE7m89/view?usp=sharing. I assume this is the issue mentioned in #253. Could you provide a renderdoc trace without this issue? Also what version of Windows driver are you using? |
Here you go https://drive.google.com/file/d/17x_8cyaJuzRuyw9u-WVoB3WeQiMB4wJY/view?usp=sharing Same OS: windows, Same GPU RX 6800M |
|
This is still broke in Newest Driver 21.10.1 (Transform feedback) |
|
@FernandoS27 We got similar render image with Windows and Radv driver for the trace https://drive.google.com/file/d/17x_8cyaJuzRuyw9u-WVoB3WeQiMB4wJY/view?usp=sharing : Could you confirm if the image is correct? if not, could you provide the expected image? |
|
@jinjianrong looks wrong. I can't get a capture from RADv right now (i'll do it at night) but I have a capture of NVIDIA GTX 1650, Intel 650HD and AMD RX 570 all at the same frame. It should look similar to this (except black bl\ackground and the spread does not have to be the same, it differs in Intel and NVIDIA a bit due to timing, I timed 150 frames this time, so it should be spread in AMD after fix) Here a few things we always do that are different to most people: This is fine according to the Spec we don't emulate counters yet, nor are they necessary in the specification. Other than that, we never change or set the streambuffer a, according to the spec this means we always use the stream 0. I also tried changing it, as well as adding full barriers between the transform feedback calls and no use. |
|
@jinjianrong It seems to be fixed on latest amdvlk version. I still need further confirmation. |
|
Thanks for the confirm |
|
@jinjianrong as far as I know Windows AMD proprietary driver uses AMDVLK, right? Is there any way to know which version of it is used? January's Windows driver releases have not included this fix yet. So I'm not sure if AMDVLK has not been updated there or the bug happens on windows for some reason. |
|
@FernandoS27 please try this Windows driver release: https://www.amd.com/en/support/kb/release-notes/rn-rad-win-22-1-2-vulkan-1-3 |
|
Btw, you could use vulkaninfo to get driverVersion (refer to #262) to check if a Windows driver and an AMDVLK driver are built from similar code base. |
|
@jinjianrong i have checked up that driver and transform feedback is still broken in Windows. I had checked Linux about 2 weeks ago and TFB was still working. This is our own report from Vulkan VkPhysicalDeviceProperties Not single TFB test passed. I'll test Vega and RDNA2 later on. EDIT: Same story with Vega and RDNA2. |



VK_EXT_SAMPLER_FILTER_MINMAX broken on Windows but working on LINUX open source drivers
Transform Feedback broken
The text was updated successfully, but these errors were encountered: