Get rid of now unused set_coords in video_driver_poke_interface

This commit is contained in:
twinaphex 2019-03-18 05:04:23 +01:00
parent 03641f2378
commit fe1255094f
33 changed files with 0 additions and 64 deletions

View File

@ -306,7 +306,6 @@ static void caca_set_osd_msg(void *data,
static const video_poke_interface_t caca_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -1144,7 +1144,6 @@ static void ctr_set_osd_msg(void *data,
static const video_poke_interface_t ctr_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
ctr_load_texture,
ctr_unload_texture,

View File

@ -1684,7 +1684,6 @@ static uint32_t d3d10_get_flags(void *data)
static const video_poke_interface_t d3d10_poke_interface = {
d3d10_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
d3d10_gfx_load_texture,
d3d10_gfx_unload_texture,

View File

@ -1751,7 +1751,6 @@ static uint32_t d3d11_get_flags(void *data)
static const video_poke_interface_t d3d11_poke_interface = {
d3d11_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
d3d11_gfx_load_texture,
d3d11_gfx_unload_texture,

View File

@ -1797,7 +1797,6 @@ static uint32_t d3d12_get_flags(void *data)
static const video_poke_interface_t d3d12_poke_interface = {
d3d12_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
d3d12_gfx_load_texture,
d3d12_gfx_unload_texture,

View File

@ -1854,7 +1854,6 @@ static uint32_t d3d8_get_flags(void *data)
static const video_poke_interface_t d3d_poke_interface = {
d3d8_get_flags,
NULL, /* set_coords */
d3d8_set_mvp,
d3d8_load_texture,
d3d8_unload_texture,

View File

@ -2053,7 +2053,6 @@ static uint32_t d3d9_get_flags(void *data)
static const video_poke_interface_t d3d9_poke_interface = {
d3d9_get_flags,
NULL, /* set_coords */
d3d9_set_mvp,
d3d9_load_texture,
d3d9_unload_texture,

View File

@ -632,7 +632,6 @@ static void dispmanx_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
static const video_poke_interface_t dispmanx_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -966,7 +966,6 @@ static void drm_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
static const video_poke_interface_t drm_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -1489,7 +1489,6 @@ static void exynos_show_mouse(void *data, bool state)
static const video_poke_interface_t exynos_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -631,7 +631,6 @@ static void gdi_unload_texture(void *data, uintptr_t handle)
static const video_poke_interface_t gdi_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
gdi_load_texture,
gdi_unload_texture,

View File

@ -4142,7 +4142,6 @@ static uint32_t gl2_get_flags(void *data)
static const video_poke_interface_t gl2_poke_interface = {
gl2_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
gl2_load_texture,
gl2_unload_texture,

View File

@ -1248,23 +1248,8 @@ static uint32_t gl1_get_flags(void *data)
return flags;
}
static void gl1_set_coords(void *handle_data, void *shader_data,
const struct video_coords *coords)
{
gl1_t *gl1 = (gl1_t*)handle_data;
if (!gl1)
return;
gl1->coords.vertex = coords->vertex;
gl1->coords.color = coords->color;
gl1->coords.tex_coord = coords->tex_coord;
gl1->coords.lut_tex_coord = coords->lut_tex_coord;
}
static const video_poke_interface_t gl1_poke_interface = {
gl1_get_flags,
gl1_set_coords,
NULL,
gl1_load_texture,
gl1_unload_texture,

View File

@ -1960,7 +1960,6 @@ static retro_proc_address_t gl_core_get_proc_address(void *data, const char *sym
static const video_poke_interface_t gl_core_poke_interface = {
gl_core_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
gl_core_load_texture,
gl_core_unload_texture,

View File

@ -1717,7 +1717,6 @@ static uint32_t wiiu_gfx_get_flags(void *data)
static const video_poke_interface_t wiiu_poke_interface = {
wiiu_gfx_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
wiiu_gfx_load_texture,
wiiu_gfx_unload_texture,

View File

@ -1265,7 +1265,6 @@ static void gx_get_video_output_next(void *data)
static const video_poke_interface_t gx_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -1138,7 +1138,6 @@ static float omap_get_refresh_rate(void *data)
static const video_poke_interface_t omap_gfx_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -470,7 +470,6 @@ static bool ps2_get_hw_render_interface(void* data,
static const video_poke_interface_t ps2_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -832,7 +832,6 @@ static void psp_viewport_info(void *data, struct video_viewport *vp)
static const video_poke_interface_t psp_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -726,7 +726,6 @@ static void sdl2_grab_mouse_toggle(void *data)
static video_poke_interface_t sdl2_video_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -518,7 +518,6 @@ static void sdl_grab_mouse_toggle(void *data)
static const video_poke_interface_t sdl_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -603,7 +603,6 @@ static const video_poke_interface_t sixel_poke_interface = {
NULL,
NULL,
NULL,
NULL,
sixel_set_video_mode,
NULL,
NULL,

View File

@ -944,7 +944,6 @@ static float sunxi_get_refresh_rate (void *data)
static const video_poke_interface_t sunxi_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -406,7 +406,6 @@ static void switch_set_texture_enable(void *data, bool enable, bool full_screen)
static const video_poke_interface_t switch_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL, /* load_texture */
NULL, /* unload_texture */

View File

@ -755,7 +755,6 @@ void switch_overlay_interface(void *data, const video_overlay_interface_t **ifac
static const video_poke_interface_t switch_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL, /* load_texture */
NULL, /* unload_texture */

View File

@ -391,7 +391,6 @@ static void vga_set_osd_msg(void *data,
static const video_poke_interface_t vga_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -790,7 +790,6 @@ static bool vita_get_current_sw_framebuffer(void *data,
static const video_poke_interface_t vita_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
vita_load_texture,
vita_unload_texture,

View File

@ -2407,7 +2407,6 @@ static uint32_t vulkan_get_flags(void *data)
static const video_poke_interface_t vulkan_poke_interface = {
vulkan_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
vulkan_load_texture,
vulkan_unload_texture,

View File

@ -205,7 +205,6 @@ static void xshm_grab_mouse_toggle(void *data)
static video_poke_interface_t xshm_video_poke_interface = {
NULL, /* get_flags */
NULL, /* set_coords */
NULL, /* set_mvp */
NULL,
NULL,

View File

@ -940,7 +940,6 @@ static video_poke_interface_t xv_video_poke_interface = {
NULL,
NULL,
NULL,
NULL,
x11_get_refresh_rate,
NULL,
NULL,

View File

@ -3544,21 +3544,6 @@ bool video_shader_driver_init(video_shader_ctx_init_t *init)
return true;
}
void video_driver_set_coords(video_shader_ctx_coords_t *coords)
{
if (current_shader && current_shader->set_coords)
current_shader->set_coords(coords->handle_data,
current_shader_data,
(const struct video_coords*)coords->data);
else
{
if (video_driver_poke && video_driver_poke->set_coords)
video_driver_poke->set_coords(coords->handle_data,
current_shader_data,
(const struct video_coords*)coords->data);
}
}
void video_driver_set_mvp(video_shader_ctx_mvp_t *mvp)
{
if (!mvp || !mvp->matrix)

View File

@ -691,8 +691,6 @@ struct aspect_ratio_elem
typedef struct video_poke_interface
{
uint32_t (*get_flags)(void *data);
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,
@ -1198,8 +1196,6 @@ bool video_shader_driver_init_first(const void *data);
bool video_shader_driver_init(video_shader_ctx_init_t *init);
void video_driver_set_coords(video_shader_ctx_coords_t *coords);
void video_driver_set_mvp(video_shader_ctx_mvp_t *mvp);
float video_driver_get_refresh_rate(void);

View File

@ -1241,7 +1241,6 @@ static uint32_t thread_get_flags(void *data)
static const video_poke_interface_t thread_poke = {
thread_get_flags,
NULL, /* set_coords */
NULL, /* set_mvp */
thread_load_texture,
thread_unload_texture,