Skip to content

Commit

Permalink
Combine video_driver.c and video_shader_driver.c
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed May 18, 2017
1 parent 4e7b376 commit 59b3344
Show file tree
Hide file tree
Showing 28 changed files with 619 additions and 692 deletions.
1 change: 0 additions & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ OBJ += frontend/frontend.o \
tasks/task_powerstate.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler.o \
gfx/drivers_shader/shader_null.o \
gfx/video_shader_driver.o \
gfx/video_shader_parse.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/pixconv.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler_int.o \
Expand Down
4 changes: 0 additions & 4 deletions gfx/drivers/d3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@

#include "../../driver.h"

#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_HLSL)
#include "../video_shader_driver.h"
#endif

#include "../font_driver.h"
#include "../video_driver.h"
#include "../common/d3d_common.h"
Expand Down
2 changes: 0 additions & 2 deletions gfx/drivers/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@
#include "../common/win32_common.h"
#endif

#include "../video_shader_driver.h"

#ifndef GL_SYNC_GPU_COMMANDS_COMPLETE
#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
#endif
Expand Down
1 change: 0 additions & 1 deletion gfx/drivers_font/gl_raster_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include "../common/gl_common.h"
#include "../font_driver.h"
#include "../video_shader_driver.h"
#include "../video_driver.h"

/* TODO: Move viewport side effects to the caller: it's a source of bugs. */
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_renderchain/gl_legacy_renderchain.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include "../common/win32_common.h"
#endif

#include "../video_shader_driver.h"
#include "../video_driver.h"

#define set_texture_coords(coords, xamt, yamt) \
coords[2] = xamt; \
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_renderchain/xdk_renderchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "../drivers/d3d.h"
#include "../common/d3d_common.h"

#include "../video_shader_driver.h"
#include "../video_driver.h"

#include "../../configuration.h"
#include "../../verbosity.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/shader_gl_cg.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

#include "../include/Cg/cg.h"

#include "../video_shader_driver.h"
#include "../video_driver.h"
#include "../video_shader_parse.h"
#include "../../core.h"
#include "../../managers/state_manager.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/shader_glsl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define __RARCH_GLSL_H

#include <boolean.h>
#include "../video_shader_driver.h"
#include "../video_driver.h"

void gl_glsl_set_get_proc_address(gfx_ctx_proc_t (*proc)(const char*));

Expand Down
3 changes: 2 additions & 1 deletion gfx/drivers_shader/shader_hlsl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
#ifndef __RARCH_HLSL_H
#define __RARCH_HLSL_H

#include "../video_shader_driver.h"
#include <stdint.h>

#include "../video_driver.h"

void hlsl_set_proj_matrix(void *data, XMMATRIX rotation_value);

#define RARCH_HLSL_MAX_SHADERS 16
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/shader_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "../../config.h"
#endif

#include "../video_shader_driver.h"
#include "../video_driver.h"

typedef struct null_shader_data
{
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/shader_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "slang_reflection.hpp"

#include "../video_shader_driver.h"
#include "../video_driver.h"
#include "../../verbosity.h"
#include "../../msg_hash.h"

Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/slang_preprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <boolean.h>
#include <retro_common_api.h>
#include "../video_shader_driver.h"
#include "../video_driver.h"

RETRO_BEGIN_DECLS

Expand Down
Loading

0 comments on commit 59b3344

Please sign in to comment.