mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
winsys_handle: Change D3D12 resource handle type to void*
This lets us include it in Linux builds as well, without needing to pull in IUnknown. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7937>
This commit is contained in:
parent
4ee55769d6
commit
8fc2676e47
1 changed files with 1 additions and 7 deletions
|
|
@ -10,11 +10,7 @@ extern "C" {
|
|||
#define WINSYS_HANDLE_TYPE_KMS 1
|
||||
#define WINSYS_HANDLE_TYPE_FD 2
|
||||
#define WINSYS_HANDLE_TYPE_SHMID 3
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <unknwn.h>
|
||||
#define WINSYS_HANDLE_TYPE_D3D12_RES 4
|
||||
#endif
|
||||
|
||||
/**
|
||||
* For use with pipe_screen::{texture_from_handle|texture_get_handle}.
|
||||
|
|
@ -66,13 +62,11 @@ struct winsys_handle
|
|||
*/
|
||||
uint64_t modifier;
|
||||
|
||||
#ifdef _WIN32
|
||||
/**
|
||||
* Input to resource_from_handle.
|
||||
* Output for resource_get_handle.
|
||||
*/
|
||||
IUnknown *com_obj;
|
||||
#endif
|
||||
void *com_obj;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue