Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
171bb8ff
Commit
171bb8ff
authored
Jun 27, 2017
by
Michael Müller
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvapi: Add stub for NvAPI_GPU_GetGpuCoreCount.
parent
fed354de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
nvapi.c
dlls/nvapi/nvapi.c
+21
-0
No files found.
dlls/nvapi/nvapi.c
View file @
171bb8ff
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment