d3d12: Add support for importing d3d12_video_buffer from handle

Reviewed-by: Giancarlo Devich <gdevich@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18328>
This commit is contained in:
Sil Vilerino
2022-09-07 13:37:18 -04:00
parent 59c45e1ed7
commit fd84575809
4 changed files with 57 additions and 7 deletions
+10
View File
@@ -34,6 +34,7 @@
#include "p_defines.h"
#include "util/u_debug.h"
#include <stdio.h>
#include "frontend/winsys_handle.h"
#ifdef __cplusplus
extern "C" {
@@ -1192,6 +1193,15 @@ struct pipe_context {
const struct pipe_video_buffer *templat,
const uint64_t *modifiers,
unsigned int modifiers_count);
/**
* Creates a video buffer as decoding target, from external memory
*/
struct pipe_video_buffer *(*video_buffer_from_handle)( struct pipe_context *context,
const struct pipe_video_buffer *templat,
struct winsys_handle *handle,
unsigned usage );
};