Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
627181d9
Commit
627181d9
authored
Sep 08, 2023
by
Etaash Mathamsetty
Committed by
Alexandre Julliard
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add stub for D3DKMTQueryAdapterInfo.
parent
3e19ca92
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
132 additions
and
2 deletions
+132
-2
d3d11.spec
dlls/d3d11/d3d11.spec
+1
-1
gdi32.spec
dlls/gdi32/gdi32.spec
+1
-0
driver.c
dlls/win32u/driver.c
+12
-0
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
gdi.c
dlls/wow64win/gdi.c
+22
-0
syscall.h
dlls/wow64win/syscall.h
+1
-0
d3dkmthk.h
include/ddk/d3dkmthk.h
+92
-0
ntgdi.h
include/ntgdi.h
+1
-0
No files found.
dlls/d3d11/d3d11.spec
View file @
627181d9
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
@ stub D3DKMTOpenAdapterFromHdc
@ stub D3DKMTOpenAdapterFromHdc
@ stub D3DKMTOpenResource
@ stub D3DKMTOpenResource
@ stub D3DKMTPresent
@ stub D3DKMTPresent
@ st
ub
D3DKMTQueryAdapterInfo
@ st
dcall D3DKMTQueryAdapterInfo(ptr) gdi32.
D3DKMTQueryAdapterInfo
@ stub D3DKMTQueryAllocationResidency
@ stub D3DKMTQueryAllocationResidency
@ stub D3DKMTQueryResourceInfo
@ stub D3DKMTQueryResourceInfo
@ stub D3DKMTRender
@ stub D3DKMTRender
...
...
dlls/gdi32/gdi32.spec
View file @
627181d9
...
@@ -84,6 +84,7 @@
...
@@ -84,6 +84,7 @@
@ stdcall D3DKMTOpenAdapterFromGdiDisplayName(ptr)
@ stdcall D3DKMTOpenAdapterFromGdiDisplayName(ptr)
@ stdcall D3DKMTOpenAdapterFromHdc(ptr) win32u.NtGdiDdDDIOpenAdapterFromHdc
@ stdcall D3DKMTOpenAdapterFromHdc(ptr) win32u.NtGdiDdDDIOpenAdapterFromHdc
@ stdcall D3DKMTOpenAdapterFromLuid(ptr) win32u.NtGdiDdDDIOpenAdapterFromLuid
@ stdcall D3DKMTOpenAdapterFromLuid(ptr) win32u.NtGdiDdDDIOpenAdapterFromLuid
@ stdcall D3DKMTQueryAdapterInfo(ptr) win32u.NtGdiDdDDIQueryAdapterInfo
@ stdcall D3DKMTQueryStatistics(ptr) win32u.NtGdiDdDDIQueryStatistics
@ stdcall D3DKMTQueryStatistics(ptr) win32u.NtGdiDdDDIQueryStatistics
@ stdcall D3DKMTQueryVideoMemoryInfo(ptr) win32u.NtGdiDdDDIQueryVideoMemoryInfo
@ stdcall D3DKMTQueryVideoMemoryInfo(ptr) win32u.NtGdiDdDDIQueryVideoMemoryInfo
@ stdcall D3DKMTSetQueuedLimit(ptr) win32u.NtGdiDdDDISetQueuedLimit
@ stdcall D3DKMTSetQueuedLimit(ptr) win32u.NtGdiDdDDISetQueuedLimit
...
...
dlls/win32u/driver.c
View file @
627181d9
...
@@ -1540,6 +1540,18 @@ NTSTATUS WINAPI NtGdiDdDDIDestroyDevice( const D3DKMT_DESTROYDEVICE *desc )
...
@@ -1540,6 +1540,18 @@ NTSTATUS WINAPI NtGdiDdDDIDestroyDevice( const D3DKMT_DESTROYDEVICE *desc )
}
}
/******************************************************************************
/******************************************************************************
* NtGdiDdDDIQueryAdapterInfo (win32u.@)
*/
NTSTATUS
WINAPI
NtGdiDdDDIQueryAdapterInfo
(
D3DKMT_QUERYADAPTERINFO
*
desc
)
{
if
(
!
desc
)
return
STATUS_INVALID_PARAMETER
;
FIXME
(
"desc %p, type %d stub
\n
"
,
desc
,
desc
->
Type
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtGdiDdDDIQueryStatistics (win32u.@)
* NtGdiDdDDIQueryStatistics (win32u.@)
*/
*/
NTSTATUS
WINAPI
NtGdiDdDDIQueryStatistics
(
D3DKMT_QUERYSTATISTICS
*
stats
)
NTSTATUS
WINAPI
NtGdiDdDDIQueryStatistics
(
D3DKMT_QUERYSTATISTICS
*
stats
)
...
...
dlls/win32u/syscall.c
View file @
627181d9
...
@@ -76,6 +76,7 @@ static void * const syscalls[] =
...
@@ -76,6 +76,7 @@ static void * const syscalls[] =
NtGdiDdDDIOpenAdapterFromDeviceName
,
NtGdiDdDDIOpenAdapterFromDeviceName
,
NtGdiDdDDIOpenAdapterFromHdc
,
NtGdiDdDDIOpenAdapterFromHdc
,
NtGdiDdDDIOpenAdapterFromLuid
,
NtGdiDdDDIOpenAdapterFromLuid
,
NtGdiDdDDIQueryAdapterInfo
,
NtGdiDdDDIQueryStatistics
,
NtGdiDdDDIQueryStatistics
,
NtGdiDdDDIQueryVideoMemoryInfo
,
NtGdiDdDDIQueryVideoMemoryInfo
,
NtGdiDdDDISetQueuedLimit
,
NtGdiDdDDISetQueuedLimit
,
...
...
dlls/win32u/win32u.spec
View file @
627181d9
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
@ stub NtGdiDdDDIPresentMultiPlaneOverlay2
@ stub NtGdiDdDDIPresentMultiPlaneOverlay2
@ stub NtGdiDdDDIPresentMultiPlaneOverlay3
@ stub NtGdiDdDDIPresentMultiPlaneOverlay3
@ stub NtGdiDdDDIPresentRedirected
@ stub NtGdiDdDDIPresentRedirected
@ st
ub NtGdiDdDDIQueryAdapterInfo
@ st
dcall -syscall NtGdiDdDDIQueryAdapterInfo(ptr)
@ stub NtGdiDdDDIQueryAllocationResidency
@ stub NtGdiDdDDIQueryAllocationResidency
@ stub NtGdiDdDDIQueryClockCalibration
@ stub NtGdiDdDDIQueryClockCalibration
@ stub NtGdiDdDDIQueryFSEBlock
@ stub NtGdiDdDDIQueryFSEBlock
...
...
dlls/wow64win/gdi.c
View file @
627181d9
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "ntgdi.h"
#include "ntgdi.h"
#include "ddk/d3dkmthk.h"
#include "wow64win_private.h"
#include "wow64win_private.h"
typedef
struct
typedef
struct
...
@@ -585,6 +586,27 @@ NTSTATUS WINAPI wow64_NtGdiDdDDIOpenAdapterFromLuid( UINT *args )
...
@@ -585,6 +586,27 @@ NTSTATUS WINAPI wow64_NtGdiDdDDIOpenAdapterFromLuid( UINT *args )
return
NtGdiDdDDIOpenAdapterFromLuid
(
desc
);
return
NtGdiDdDDIOpenAdapterFromLuid
(
desc
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiDdDDIQueryAdapterInfo
(
UINT
*
args
)
{
struct
_D3DKMT_QUERYADAPTERINFO
{
D3DKMT_HANDLE
hAdapter
;
KMTQUERYADAPTERINFOTYPE
Type
;
ULONG
pPrivateDriverData
;
UINT
PrivateDriverDataSize
;
}
*
desc32
=
get_ptr
(
&
args
);
D3DKMT_QUERYADAPTERINFO
desc
;
if
(
!
desc32
)
return
STATUS_INVALID_PARAMETER
;
desc
.
hAdapter
=
desc32
->
hAdapter
;
desc
.
Type
=
desc32
->
Type
;
desc
.
pPrivateDriverData
=
UlongToPtr
(
desc32
->
pPrivateDriverData
);
desc
.
PrivateDriverDataSize
=
desc32
->
PrivateDriverDataSize
;
return
NtGdiDdDDIQueryAdapterInfo
(
&
desc
);
}
NTSTATUS
WINAPI
wow64_NtGdiDdDDIQueryStatistics
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiDdDDIQueryStatistics
(
UINT
*
args
)
{
{
D3DKMT_QUERYSTATISTICS
*
stats
=
get_ptr
(
&
args
);
D3DKMT_QUERYSTATISTICS
*
stats
=
get_ptr
(
&
args
);
...
...
dlls/wow64win/syscall.h
View file @
627181d9
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
SYSCALL_ENTRY( NtGdiDdDDIOpenAdapterFromDeviceName ) \
SYSCALL_ENTRY( NtGdiDdDDIOpenAdapterFromDeviceName ) \
SYSCALL_ENTRY( NtGdiDdDDIOpenAdapterFromHdc ) \
SYSCALL_ENTRY( NtGdiDdDDIOpenAdapterFromHdc ) \
SYSCALL_ENTRY( NtGdiDdDDIOpenAdapterFromLuid ) \
SYSCALL_ENTRY( NtGdiDdDDIOpenAdapterFromLuid ) \
SYSCALL_ENTRY( NtGdiDdDDIQueryAdapterInfo ) \
SYSCALL_ENTRY( NtGdiDdDDIQueryStatistics ) \
SYSCALL_ENTRY( NtGdiDdDDIQueryStatistics ) \
SYSCALL_ENTRY( NtGdiDdDDIQueryVideoMemoryInfo ) \
SYSCALL_ENTRY( NtGdiDdDDIQueryVideoMemoryInfo ) \
SYSCALL_ENTRY( NtGdiDdDDISetQueuedLimit ) \
SYSCALL_ENTRY( NtGdiDdDDISetQueuedLimit ) \
...
...
include/ddk/d3dkmthk.h
View file @
627181d9
...
@@ -174,6 +174,98 @@ typedef struct _D3DKMT_DESTROYDCFROMMEMORY
...
@@ -174,6 +174,98 @@ typedef struct _D3DKMT_DESTROYDCFROMMEMORY
HANDLE
hBitmap
;
HANDLE
hBitmap
;
}
D3DKMT_DESTROYDCFROMMEMORY
;
}
D3DKMT_DESTROYDCFROMMEMORY
;
typedef
enum
_KMTQUERYADAPTERINFOTYPE
{
KMTQAITYPE_UMDRIVERPRIVATE
,
KMTQAITYPE_UMDRIVERNAME
,
KMTQAITYPE_UMOPENGLINFO
,
KMTQAITYPE_GETSEGMENTSIZE
,
KMTQAITYPE_ADAPTERGUID
,
KMTQAITYPE_FLIPQUEUEINFO
,
KMTQAITYPE_ADAPTERADDRESS
,
KMTQAITYPE_SETWORKINGSETINFO
,
KMTQAITYPE_ADAPTERREGISTRYINFO
,
KMTQAITYPE_CURRENTDISPLAYMODE
,
KMTQAITYPE_MODELIST
,
KMTQAITYPE_CHECKDRIVERUPDATESTATUS
,
KMTQAITYPE_VIRTUALADDRESSINFO
,
KMTQAITYPE_DRIVERVERSION
,
KMTQAITYPE_ADAPTERTYPE
,
KMTQAITYPE_OUTPUTDUPLCONTEXTSCOUNT
,
KMTQAITYPE_WDDM_1_2_CAPS
,
KMTQAITYPE_UMD_DRIVER_VERSION
,
KMTQAITYPE_DIRECTFLIP_SUPPORT
,
KMTQAITYPE_MULTIPLANEOVERLAY_SUPPORT
,
KMTQAITYPE_DLIST_DRIVER_NAME
,
KMTQAITYPE_WDDM_1_3_CAPS
,
KMTQAITYPE_MULTIPLANEOVERLAY_HUD_SUPPORT
,
KMTQAITYPE_WDDM_2_0_CAPS
,
KMTQAITYPE_NODEMETADATA
,
KMTQAITYPE_CPDRIVERNAME
,
KMTQAITYPE_XBOX
,
KMTQAITYPE_INDEPENDENTFLIP_SUPPORT
,
KMTQAITYPE_MIRACASTCOMPANIONDRIVERNAME
,
KMTQAITYPE_PHYSICALADAPTERCOUNT
,
KMTQAITYPE_PHYSICALADAPTERDEVICEIDS
,
KMTQAITYPE_DRIVERCAPS_EXT
,
KMTQAITYPE_QUERY_MIRACAST_DRIVER_TYPE
,
KMTQAITYPE_QUERY_GPUMMU_CAPS
,
KMTQAITYPE_QUERY_MULTIPLANEOVERLAY_DECODE_SUPPORT
,
KMTQAITYPE_QUERY_HW_PROTECTION_TEARDOWN_COUNT
,
KMTQAITYPE_QUERY_ISBADDRIVERFORHWPROTECTIONDISABLED
,
KMTQAITYPE_MULTIPLANEOVERLAY_SECONDARY_SUPPORT
,
KMTQAITYPE_INDEPENDENTFLIP_SECONDARY_SUPPORT
,
KMTQAITYPE_PANELFITTER_SUPPORT
,
KMTQAITYPE_PHYSICALADAPTERPNPKEY
,
KMTQAITYPE_GETSEGMENTGROUPSIZE
,
KMTQAITYPE_MPO3DDI_SUPPORT
,
KMTQAITYPE_HWDRM_SUPPORT
,
KMTQAITYPE_MPOKERNELCAPS_SUPPORT
,
KMTQAITYPE_MULTIPLANEOVERLAY_STRETCH_SUPPORT
,
KMTQAITYPE_GET_DEVICE_VIDPN_OWNERSHIP_INFO
,
KMTQAITYPE_QUERYREGISTRY
,
KMTQAITYPE_KMD_DRIVER_VERSION
,
KMTQAITYPE_BLOCKLIST_KERNEL
,
KMTQAITYPE_BLOCKLIST_RUNTIME
,
KMTQAITYPE_ADAPTERGUID_RENDER
,
KMTQAITYPE_ADAPTERADDRESS_RENDER
,
KMTQAITYPE_ADAPTERREGISTRYINFO_RENDER
,
KMTQAITYPE_CHECKDRIVERUPDATESTATUS_RENDER
,
KMTQAITYPE_DRIVERVERSION_RENDER
,
KMTQAITYPE_ADAPTERTYPE_RENDER
,
KMTQAITYPE_WDDM_1_2_CAPS_RENDER
,
KMTQAITYPE_WDDM_1_3_CAPS_RENDER
,
KMTQAITYPE_QUERY_ADAPTER_UNIQUE_GUID
,
KMTQAITYPE_NODEPERFDATA
,
KMTQAITYPE_ADAPTERPERFDATA
,
KMTQAITYPE_ADAPTERPERFDATA_CAPS
,
KMTQUITYPE_GPUVERSION
,
KMTQAITYPE_DRIVER_DESCRIPTION
,
KMTQAITYPE_DRIVER_DESCRIPTION_RENDER
,
KMTQAITYPE_SCANOUT_CAPS
,
KMTQAITYPE_DISPLAY_UMDRIVERNAME
,
KMTQAITYPE_PARAVIRTUALIZATION_RENDER
,
KMTQAITYPE_SERVICENAME
,
KMTQAITYPE_WDDM_2_7_CAPS
,
KMTQAITYPE_TRACKEDWORKLOAD_SUPPORT
,
KMTQAITYPE_HYBRID_DLIST_DLL_SUPPORT
,
KMTQAITYPE_DISPLAY_CAPS
,
KMTQAITYPE_WDDM_2_9_CAPS
,
KMTQAITYPE_CROSSADAPTERRESOURCE_SUPPORT
,
KMTQAITYPE_WDDM_3_0_CAPS
,
KMTQAITYPE_WSAUMDIMAGENAME
,
KMTQAITYPE_VGPUINTERFACEID
,
KMTQAITYPE_WDDM_3_1_CAPS
}
KMTQUERYADAPTERINFOTYPE
;
typedef
struct
_D3DKMT_QUERYADAPTERINFO
{
D3DKMT_HANDLE
hAdapter
;
KMTQUERYADAPTERINFOTYPE
Type
;
VOID
*
pPrivateDriverData
;
UINT
PrivateDriverDataSize
;
}
D3DKMT_QUERYADAPTERINFO
;
typedef
enum
_D3DKMT_QUERYRESULT_PREEMPTION_ATTEMPT_RESULT
typedef
enum
_D3DKMT_QUERYRESULT_PREEMPTION_ATTEMPT_RESULT
{
{
D3DKMT_PreemptionAttempt
=
0
,
D3DKMT_PreemptionAttempt
=
0
,
...
...
include/ntgdi.h
View file @
627181d9
...
@@ -477,6 +477,7 @@ NTSTATUS WINAPI NtGdiDdDDIEscape( const D3DKMT_ESCAPE *desc );
...
@@ -477,6 +477,7 @@ NTSTATUS WINAPI NtGdiDdDDIEscape( const D3DKMT_ESCAPE *desc );
NTSTATUS
WINAPI
NtGdiDdDDIOpenAdapterFromHdc
(
D3DKMT_OPENADAPTERFROMHDC
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIOpenAdapterFromHdc
(
D3DKMT_OPENADAPTERFROMHDC
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIOpenAdapterFromDeviceName
(
D3DKMT_OPENADAPTERFROMDEVICENAME
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIOpenAdapterFromDeviceName
(
D3DKMT_OPENADAPTERFROMDEVICENAME
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIOpenAdapterFromLuid
(
D3DKMT_OPENADAPTERFROMLUID
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIOpenAdapterFromLuid
(
D3DKMT_OPENADAPTERFROMLUID
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIQueryAdapterInfo
(
D3DKMT_QUERYADAPTERINFO
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIQueryStatistics
(
D3DKMT_QUERYSTATISTICS
*
stats
);
NTSTATUS
WINAPI
NtGdiDdDDIQueryStatistics
(
D3DKMT_QUERYSTATISTICS
*
stats
);
NTSTATUS
WINAPI
NtGdiDdDDIQueryVideoMemoryInfo
(
D3DKMT_QUERYVIDEOMEMORYINFO
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDIQueryVideoMemoryInfo
(
D3DKMT_QUERYVIDEOMEMORYINFO
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDISetQueuedLimit
(
D3DKMT_SETQUEUEDLIMIT
*
desc
);
NTSTATUS
WINAPI
NtGdiDdDDISetQueuedLimit
(
D3DKMT_SETQUEUEDLIMIT
*
desc
);
...
...
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