https://bugs.winehq.org/show_bug.cgi?id=52647
--- Comment #4 from Alois Schlögl alois.schloegl@gmail.com ---
I tested now also with wine-staging 7.4 and see the same behaviour. I'm using nvidia/cuda from bullseye repository.
When removing the kernel module nvidia-drm, I see a different behavior. Testing Cuda-Z, wine does not switch into debug mode anymore, and CUDA-Z reports "No compatible CUDA devices found! Please update your NVIDIA drivers and try again" . This message might not be surprising, but the fact that wine does not switch into debug mode, indicates that it is somehow cuda related.
I've also tested with libcuda1, and nvidia-drivers from bullseye-backports, but see the same behaviour. Nevertheless, I'm wondering whether wine-staging for Debian11 is build on the stable repository only, or whether some packages from backports or testing are installed on the build machine.
I guess could try compiling wine-staging from source, but that would take some time.