jp7677 / dxvk-nvapi

Alternative NVAPI implementation on top of DXVK.
MIT License
373 stars 32 forks source link

Prevent CudaEnumComputeCapableGpus V2 crash #128

Closed jp7677 closed 1 year ago

jp7677 commented 1 year ago

It doesn't allow hardware PhysX in https://github.com/jp7677/dxvk-nvapi/issues/127, but at least it doesn't crash anymore.

The header says:

typedef struct _NV_COMPUTE_GPU_TOPOLOGY_V2
{
    NvU32 version;                 //!< Structure version
    NvU32 gpuCount;                //!< Size of array
    NV_COMPUTE_GPU *computeGpus;   //!< Array of compute-capable physical GPUs (allocate memory of size of Physical gpuCount of system).

} NV_COMPUTE_GPU_TOPOLOGY_V2;

I would interpret it that this has to be done on the consumer side, but here we are...

gabriele2000 commented 1 year ago

With wine 7.20 the game crashes while opening. With wine 8.9 the game deadlocks (fatally) a second after loading the level.