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:
Jesse Natalie 2020-12-08 09:53:52 -08:00 committed by Marge Bot
parent 4ee55769d6
commit 8fc2676e47

View file

@ -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