diff --git a/gfx/drivers/caca_gfx.c b/gfx/drivers/caca_gfx.c index 4e111e09c5..a89cb63ed8 100644 --- a/gfx/drivers/caca_gfx.c +++ b/gfx/drivers/caca_gfx.c @@ -305,6 +305,8 @@ static void caca_set_osd_msg(void *data, } static const video_poke_interface_t caca_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/drivers/ctr_gfx.c b/gfx/drivers/ctr_gfx.c index da134da326..0aabb51ccd 100644 --- a/gfx/drivers/ctr_gfx.c +++ b/gfx/drivers/ctr_gfx.c @@ -1120,14 +1120,16 @@ static void ctr_set_osd_msg(void *data, } static const video_poke_interface_t ctr_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ ctr_load_texture, ctr_unload_texture, NULL, ctr_set_filtering, - NULL, /* get_video_output_size */ - NULL, /* get_video_output_prev */ - NULL, /* get_video_output_next */ - NULL, /* get_current_framebuffer */ + NULL, /* get_video_output_size */ + NULL, /* get_video_output_prev */ + NULL, /* get_video_output_next */ + NULL, /* get_current_framebuffer */ NULL, ctr_set_aspect_ratio, ctr_apply_state_changes, diff --git a/gfx/drivers/d3d.c b/gfx/drivers/d3d.c index 54e643a1ff..31cd9e571c 100644 --- a/gfx/drivers/d3d.c +++ b/gfx/drivers/d3d.c @@ -1711,6 +1711,8 @@ static void d3d_unload_texture(void *data, uintptr_t id) } static const video_poke_interface_t d3d_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ d3d_load_texture, d3d_unload_texture, NULL, diff --git a/gfx/drivers/dispmanx_gfx.c b/gfx/drivers/dispmanx_gfx.c index 9058834402..18afe085ae 100644 --- a/gfx/drivers/dispmanx_gfx.c +++ b/gfx/drivers/dispmanx_gfx.c @@ -631,6 +631,8 @@ static void dispmanx_set_aspect_ratio (void *data, unsigned aspect_ratio_idx) } static const video_poke_interface_t dispmanx_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, /* set_video_mode */ diff --git a/gfx/drivers/drm_gfx.c b/gfx/drivers/drm_gfx.c index 7bf088e356..01fb0dec6a 100644 --- a/gfx/drivers/drm_gfx.c +++ b/gfx/drivers/drm_gfx.c @@ -959,6 +959,8 @@ static void drm_set_aspect_ratio (void *data, unsigned aspect_ratio_idx) } static const video_poke_interface_t drm_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, /* set_video_mode */ diff --git a/gfx/drivers/exynos_gfx.c b/gfx/drivers/exynos_gfx.c index f8b69d7668..4b0476f4b5 100644 --- a/gfx/drivers/exynos_gfx.c +++ b/gfx/drivers/exynos_gfx.c @@ -1478,6 +1478,8 @@ static void exynos_show_mouse(void *data, bool state) } static const video_poke_interface_t exynos_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, /* set_video_mode */ diff --git a/gfx/drivers/gdi_gfx.c b/gfx/drivers/gdi_gfx.c index e44caec506..59e18af6b8 100644 --- a/gfx/drivers/gdi_gfx.c +++ b/gfx/drivers/gdi_gfx.c @@ -531,6 +531,8 @@ static void gdi_set_video_mode(void *data, unsigned width, unsigned height, } static const video_poke_interface_t gdi_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, gdi_set_video_mode, diff --git a/gfx/drivers/gx_gfx.c b/gfx/drivers/gx_gfx.c index b295c6931b..bf7727909e 100644 --- a/gfx/drivers/gx_gfx.c +++ b/gfx/drivers/gx_gfx.c @@ -1262,6 +1262,8 @@ static void gx_get_video_output_next(void *data) } static const video_poke_interface_t gx_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, gx_set_video_mode, diff --git a/gfx/drivers/omap_gfx.c b/gfx/drivers/omap_gfx.c index 1adb488de1..e18d582758 100644 --- a/gfx/drivers/omap_gfx.c +++ b/gfx/drivers/omap_gfx.c @@ -1130,6 +1130,8 @@ static void omap_gfx_set_texture_enable(void *data, bool state, bool full_screen } static const video_poke_interface_t omap_gfx_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/drivers/psp1_gfx.c b/gfx/drivers/psp1_gfx.c index 1789aea993..128fab83b5 100644 --- a/gfx/drivers/psp1_gfx.c +++ b/gfx/drivers/psp1_gfx.c @@ -831,6 +831,8 @@ static void psp_viewport_info(void *data, struct video_viewport *vp) } static const video_poke_interface_t psp_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/drivers/sdl2_gfx.c b/gfx/drivers/sdl2_gfx.c index d7c479d9e1..8431ebb531 100644 --- a/gfx/drivers/sdl2_gfx.c +++ b/gfx/drivers/sdl2_gfx.c @@ -718,6 +718,8 @@ static void sdl2_grab_mouse_toggle(void *data) #endif static video_poke_interface_t sdl2_video_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/drivers/sdl_gfx.c b/gfx/drivers/sdl_gfx.c index 9154acc628..7f2060296c 100644 --- a/gfx/drivers/sdl_gfx.c +++ b/gfx/drivers/sdl_gfx.c @@ -517,6 +517,8 @@ static void sdl_grab_mouse_toggle(void *data) } static const video_poke_interface_t sdl_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/drivers/sunxi_gfx.c b/gfx/drivers/sunxi_gfx.c index 845850b2b8..90a9eadbc5 100644 --- a/gfx/drivers/sunxi_gfx.c +++ b/gfx/drivers/sunxi_gfx.c @@ -932,6 +932,8 @@ static void sunxi_set_aspect_ratio (void *data, unsigned aspect_ratio_idx) } static const video_poke_interface_t sunxi_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, /* set_video_mode */ diff --git a/gfx/drivers/vga_gfx.c b/gfx/drivers/vga_gfx.c index fa6e3775a2..9bbf431186 100644 --- a/gfx/drivers/vga_gfx.c +++ b/gfx/drivers/vga_gfx.c @@ -392,6 +392,8 @@ static void vga_set_osd_msg(void *data, } static const video_poke_interface_t vga_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/drivers/vita2d_gfx.c b/gfx/drivers/vita2d_gfx.c index bd8af133e2..8cc1ba72be 100644 --- a/gfx/drivers/vita2d_gfx.c +++ b/gfx/drivers/vita2d_gfx.c @@ -779,6 +779,8 @@ static bool vita_get_current_sw_framebuffer(void *data, } static const video_poke_interface_t vita_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ vita_load_texture, vita_unload_texture, NULL, diff --git a/gfx/drivers/vulkan.c b/gfx/drivers/vulkan.c index b954d34cbe..45be4a4e70 100644 --- a/gfx/drivers/vulkan.c +++ b/gfx/drivers/vulkan.c @@ -2242,6 +2242,8 @@ static void vulkan_unload_texture(void *data, uintptr_t handle) } static const video_poke_interface_t vulkan_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ vulkan_load_texture, vulkan_unload_texture, vulkan_set_video_mode, diff --git a/gfx/drivers/wiiu_gfx.c b/gfx/drivers/wiiu_gfx.c index 68fda316af..16907200b4 100644 --- a/gfx/drivers/wiiu_gfx.c +++ b/gfx/drivers/wiiu_gfx.c @@ -848,6 +848,8 @@ static void wiiu_gfx_set_osd_msg(void* data, static const video_poke_interface_t wiiu_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ wiiu_gfx_load_texture, wiiu_gfx_unload_texture, NULL, /* set_video_mode */ diff --git a/gfx/drivers/xshm_gfx.c b/gfx/drivers/xshm_gfx.c index a2ca8416ec..75882f5f21 100644 --- a/gfx/drivers/xshm_gfx.c +++ b/gfx/drivers/xshm_gfx.c @@ -205,6 +205,8 @@ static void xshm_grab_mouse_toggle(void *data) #endif static video_poke_interface_t xshm_video_poke_interface = { + NULL, /* set_coords */ + NULL, /* set_mvp */ NULL, NULL, NULL, diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 994e095dc4..854557c246 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -673,6 +673,10 @@ struct aspect_ratio_elem typedef struct video_poke_interface { + void (*set_coords)(void *handle_data, void *shader_data, + const struct video_coords *coords); + void (*set_mvp)(void *data, void *shader_data, + const void *mat_data); uintptr_t (*load_texture)(void *video_data, void *data, bool threaded, enum texture_filter_type filter_type); void (*unload_texture)(void *data, uintptr_t id); diff --git a/gfx/video_thread_wrapper.c b/gfx/video_thread_wrapper.c index 3a35893573..59739117f4 100644 --- a/gfx/video_thread_wrapper.c +++ b/gfx/video_thread_wrapper.c @@ -1257,6 +1257,8 @@ static struct video_shader *thread_get_current_shader(void *data) } static const video_poke_interface_t thread_poke = { + NULL, /* set_coords */ + NULL, /* set_mvp */ thread_load_texture, thread_unload_texture, thread_set_video_mode,