Commit 171bb8ff authored by Michael Müller's avatar Michael Müller Committed by Vitaly Lipatov

nvapi: Add stub for NvAPI_GPU_GetGpuCoreCount.

parent fed354de
...@@ -660,6 +660,26 @@ static NvAPI_Status CDECL NvAPI_GPU_GetVirtualFrameBufferSize(NvPhysicalGpuHandl ...@@ -660,6 +660,26 @@ static NvAPI_Status CDECL NvAPI_GPU_GetVirtualFrameBufferSize(NvPhysicalGpuHandl
return NVAPI_OK; return NVAPI_OK;
} }
static NvAPI_Status CDECL NvAPI_GPU_GetGpuCoreCount(NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pCount)
{
TRACE("(%p, %p)\n", hPhysicalGpu, pCount);
if (!hPhysicalGpu)
return NVAPI_EXPECTED_PHYSICAL_GPU_HANDLE;
if (hPhysicalGpu != FAKE_PHYSICAL_GPU)
{
FIXME("invalid handle: %p\n", hPhysicalGpu);
return NVAPI_INVALID_HANDLE;
}
if (!pCount)
return NVAPI_INVALID_ARGUMENT;
*pCount = 1;
return NVAPI_OK;
}
void* CDECL nvapi_QueryInterface(unsigned int offset) void* CDECL nvapi_QueryInterface(unsigned int offset)
{ {
static const struct static const struct
...@@ -704,6 +724,7 @@ void* CDECL nvapi_QueryInterface(unsigned int offset) ...@@ -704,6 +724,7 @@ void* CDECL nvapi_QueryInterface(unsigned int offset)
{0xa064bdfc, NvAPI_D3D9_RegisterResource}, {0xa064bdfc, NvAPI_D3D9_RegisterResource},
{0x46fbeb03, NvAPI_GPU_GetPhysicalFrameBufferSize}, {0x46fbeb03, NvAPI_GPU_GetPhysicalFrameBufferSize},
{0x5a04b644, NvAPI_GPU_GetVirtualFrameBufferSize}, {0x5a04b644, NvAPI_GPU_GetVirtualFrameBufferSize},
{0xc7026a87, NvAPI_GPU_GetGpuCoreCount},
}; };
unsigned int i; unsigned int i;
TRACE("(%x)\n", offset); TRACE("(%x)\n", offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment