Commit Graph

4635 Commits

Author SHA1 Message Date
twinaphex
6ff10c5591 (D3D) N/A 2016-01-09 01:10:56 +01:00
twinaphex
6b81cfae9d (D3D) Cleanups 2016-01-09 01:05:40 +01:00
twinaphex
2fc957d369 Cleanups 2016-01-08 21:01:41 +01:00
twinaphex
2fa87013f1 Cleanups 2016-01-08 21:01:41 +01:00
twinaphex
93fed31e3a N/A 2016-01-08 20:51:30 +01:00
twinaphex
1014513e91 N/A 2016-01-08 20:46:33 +01:00
twinaphex
856e6dab64 N/A 2016-01-08 20:40:26 +01:00
twinaphex
3786f5e4f6 (D3D) Use GFX_MAX_VARIABLES 2016-01-08 20:36:20 +01:00
twinaphex
9f6c607a68 (D3D Cg) Cleanups 2016-01-08 20:28:18 +01:00
twinaphex
2829bb9217 (Cg D3D9) Cleanups 2016-01-08 19:16:11 +01:00
twinaphex
770fee3684 Revert "Cleanups"
This reverts commit 340751559e.
2016-01-08 18:38:00 +01:00
twinaphex
340751559e Cleanups 2016-01-08 18:34:15 +01:00
twinaphex
208ce772cf Cleanups 2016-01-08 18:23:40 +01:00
twinaphex
e334278696 Cleanups 2016-01-08 18:12:49 +01:00
twinaphex
39dc2a0d05 Get rid of this messy code 2016-01-08 17:58:53 +01:00
twinaphex
3a7c219e6f N/A 2016-01-08 17:56:13 +01:00
twinaphex
9540d4ccb5 (D3D) Buildfixes 2016-01-08 17:51:03 +01:00
twinaphex
d8f851365f Cleanups 2016-01-08 09:48:46 +01:00
twinaphex
0314b1f811 Take out HAVE_D3D ifdef 2016-01-08 09:02:51 +01:00
twinaphex
deb66a885e (D3D) Fixes courtesy of aliaspider 2016-01-08 08:16:26 +01:00
twinaphex
3d9f7117e4 Cleanups 2016-01-08 05:46:14 +01:00
twinaphex
ed6e35f7e3 (D3D) Buildfix 2016-01-08 05:44:36 +01:00
twinaphex
3a30649876 Pass through data variable to win32_window_create correctly 2016-01-08 05:13:10 +01:00
twinaphex
5453055135 Move resize handling to d3d_alive 2016-01-08 05:06:12 +01:00
twinaphex
377c1f2661 N/A 2016-01-08 04:52:49 +01:00
twinaphex
8635d19b9b (D3D) N/A 2016-01-08 03:46:02 +01:00
twinaphex
30d98d0693 d3d_calculate_rects - cleanups 2016-01-08 03:14:49 +01:00
twinaphex
1d07c6306e Buildfixes 2016-01-08 03:09:41 +01:00
twinaphex
eb5db8ca60 Create d3d_calculate_rect 2016-01-08 03:07:58 +01:00
twinaphex
7bcf33bff3 Remove d3d->frame_count 2016-01-08 01:09:16 +01:00
twinaphex
281de92d79 Fix function name clashes pt. 1 2016-01-07 09:22:04 +01:00
twinaphex
186a9fe61b Try to set g_inited to true 2016-01-07 07:18:52 +01:00
twinaphex
8a124bb530 N/A 2016-01-07 07:10:02 +01:00
twinaphex
f1bdfaf0ed Cleanups 2016-01-07 06:50:32 +01:00
twinaphex
682071288a N/A 2016-01-07 06:49:10 +01:00
twinaphex
cda09fb6ca N/A 2016-01-07 06:44:35 +01:00
twinaphex
63c35472a9 Don't go through d3dr pointers 2016-01-07 06:38:28 +01:00
twinaphex
23a9715f26 don't grab pointer to d3d device 2016-01-07 06:33:50 +01:00
twinaphex
fbe0b5cb5f N/A 2016-01-07 06:31:26 +01:00
twinaphex
5322b05545 Move freeing of d3d->menu to d3d_free 2016-01-07 04:59:39 +01:00
twinaphex
8c1e371d1c use new / delete for d3d->menu 2016-01-07 04:52:59 +01:00
twinaphex
e2e308d652 (render_chain_cg.cpp) use new/delete 2016-01-07 04:50:11 +01:00
twinaphex
196278305b Change bound_tex back to std::vector 2016-01-07 04:47:28 +01:00
twinaphex
99a8690b50 Change luts back to std::vector list 2016-01-07 04:42:49 +01:00
twinaphex
7bd822e032 (shader_gl_cg.c) Reuse GFX_MAX_VARIABLES 2016-01-07 04:31:31 +01:00
twinaphex
f45f3da8fb bound_tex is no longer a vector 2016-01-07 04:27:21 +01:00
twinaphex
a425ca98ed reimplement d3d_restore 2016-01-07 02:55:27 +01:00
twinaphex
e8656333f1 Make it possible to manually set one of the devices with d3d_device_free 2016-01-07 02:22:53 +01:00
twinaphex
8b9c6d099f Set g_pD3D back to NULL 2016-01-07 02:20:30 +01:00
twinaphex
0b655fdd89 Set g_pD3D to NULL in d3d_free 2016-01-07 02:19:01 +01:00
twinaphex
d6377cb183 Turn g_pD3D into static variable 2016-01-07 01:23:52 +01:00
twinaphex
5a60055aa9 Make curD3D a static variable 2016-01-07 01:18:51 +01:00
twinaphex
e5f327edda N/A 2016-01-07 01:11:26 +01:00
twinaphex
9f616cca07 Check if device is NULL inside d3d_set_resize 2016-01-07 01:10:37 +01:00
twinaphex
b4b3574665 use void pointer 2016-01-07 01:00:11 +01:00
twinaphex
3b8932b302 Turn returntype of set_resize into bool 2016-01-07 00:58:33 +01:00
twinaphex
28b615e62c (D3D) Buildfixes 2016-01-07 00:45:09 +01:00
twinaphex
3b34d6b6f1 WM_SIZE - we need to call the context driver's d3d_resize function 2016-01-07 00:43:16 +01:00
twinaphex
38a58a2a8a Call d3d_restore from d3d.cpp 2016-01-07 00:38:42 +01:00
twinaphex
70a6da0491 (D3D) Cleanups 2016-01-07 00:29:12 +01:00
twinaphex
949c4b6dc3 One cleanup 2016-01-07 00:26:38 +01:00
twinaphex
8d83d4bf81 (D3D) Buildfix 2016-01-07 00:20:23 +01:00
twinaphex
56a17b21f1 Create d3d_device_free 2016-01-07 00:19:27 +01:00
twinaphex
b345d04407 Always call gfx_ctx_free 2016-01-07 00:03:05 +01:00
twinaphex
3b516cacd7 Remove _XBOX ifdef 2016-01-06 23:59:23 +01:00
twinaphex
8cd7cb203e Revert "(D3D) Remove some more _XBOX ifdefs"
This reverts commit de989f202a.
2016-01-06 23:54:53 +01:00
twinaphex
de989f202a (D3D) Remove some more _XBOX ifdefs 2016-01-06 23:52:59 +01:00
twinaphex
054035bd9d Remove some ifndef _XBOX ifdefs 2016-01-06 23:46:46 +01:00
twinaphex
e0e69d2d36 Cleanups 2016-01-06 23:45:10 +01:00
twinaphex
2199e22e63 Remove d3d_restore_device 2016-01-06 04:26:24 +01:00
twinaphex
b8d41df24f (D3D) Add some logging to d3d_restore_device 2016-01-06 04:17:21 +01:00
twinaphex
c64b9bed15 Ifdef global variable for Xbox 2016-01-06 03:59:22 +01:00
twinaphex
08e73ea144 Non_HAVE_MEN codepath fixes - courtesy of Karlton
t # Please enter the commit message for your changes. Lines starting
2016-01-02 02:54:20 +01:00
twinaphex
4fd5f1cad6 Improvements to unsetting the video driver callback 2015-12-28 21:34:57 +01:00
twinaphex
f9f6d49ab7 Move macros to top 2015-12-26 11:27:52 +01:00
twinaphex
c2d7cbe18b Use string_is_empty 2015-12-26 07:59:15 +01:00
twinaphex
dde68de466 Add new environment callback - RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2015-12-25 19:29:14 +01:00
twinaphex
7df9efbffe Get rid of some warnings when compiling for targets with no threaded
video defined
2015-12-25 07:11:34 +01:00
vanfanel
36d079f104 fixed segfault on exit caused by gl driver trying to free font context driver when osd mesages were disabled 2015-12-25 05:47:47 +01:00
vanfanel
886acba67f fixed segfault when osd message rendering was disabled 2015-12-25 05:27:28 +01:00
Monroe88
e4894ded6d (video_shader_parse.h) Increase max parameters to 128 2015-12-23 19:39:09 -06:00
twinaphex
466953fae8 remove this 2015-12-22 21:59:24 +01:00
thedax
0565a92486 Update CTR (3DS) driver for the latest ctrulib SDK, fix a typo, and fix compilation errors. 2015-12-21 13:43:05 -05:00
Higor Eurípedes
3bce2b494f (d3d) Fix context initialization 2015-12-20 21:48:46 -03:00
twinaphex
fd644cb434 Revert "(video_driver.c) Ensure input is initialized in init_video_input"
This reverts commit d191e29d1b.
2015-12-20 23:52:50 +01:00
Higor Eurípedes
d191e29d1b (video_driver.c) Ensure input is initialized in init_video_input 2015-12-20 19:12:14 -03:00
Higor Eurípedes
f6729c0b74 (d3d_ctx) Return video_data as the context data
The d3d context shares the d3d video driver data.
2015-12-20 19:12:14 -03:00
twinaphex
f53711f791 Change return type of load_texture to uintptr_t 2015-12-20 22:38:18 +01:00
twinaphex
20170ef2b0 (D3D) Buildfix 2015-12-20 21:59:57 +01:00
twinaphex
4f499fc5c3 Buildfixes 2015-12-20 21:09:00 +01:00
twinaphex
6362c86c31 Buildfixes 2015-12-20 21:08:03 +01:00
twinaphex
aa488dda25 Create video driver poke load_texture / unload_texture 2015-12-20 20:52:23 +01:00
radius
f64fc93c44 silence a warning 2015-12-17 17:48:58 -05:00
Jean-André Santoni
6f5d09b235 (Mali) Fix mali fbdev build 2015-12-15 10:23:02 +07:00
twinaphex
6feff79547 (GL) Store major/minor version 2015-12-13 14:55:19 +01:00
twinaphex
8a213b8ab4 (sdl_gfx.c) Avoid warning by casting directly 2015-12-12 17:54:27 +01:00
twinaphex
1b768f7dcd Create RARCH_DRIVER_CTL_SET_REFRESH_RATE 2015-12-11 11:00:12 +01:00
twinaphex
fc6505e408 Get rid of rarch_system_info_get_ptr 2015-12-10 22:30:25 +01:00
Alcaro
9e3994408e What is that typecast dance good for? 2015-12-10 14:10:42 +01:00
twinaphex
9b706085c9 C89_BUILD fix 2015-12-10 14:06:55 +01:00
twinaphex
e1331fa6a5 CXX_BUILD fixes 2015-12-10 14:05:56 +01:00
twinaphex
3df5b50d4b Remove header include 2015-12-10 13:38:35 +01:00
twinaphex
71d9a89de9 Revert "gl_glsl_destroy_resources - use glIsBuffer to check if buffer is"
This reverts commit 0deb243c62.
2015-12-09 22:36:43 +01:00
twinaphex
0deb243c62 gl_glsl_destroy_resources - use glIsBuffer to check if buffer is
bound
2015-12-09 18:23:39 +01:00
twinaphex
a710d7057f gl_glsl_destroy_resources - use glIsProgram as a final check 2015-12-09 17:57:25 +01:00
twinaphex
47161af73f video_shader_driver_set_mvp - check if mat is NULL 2015-12-09 17:50:20 +01:00
twinaphex
b4fa396470 Cleanup 2015-12-09 10:14:43 +01:00
twinaphex
7bdc1da676 Create RARCH_DISPLAY_CTL_CACHED_FRAME_SET_PTR 2015-12-09 10:13:48 +01:00
twinaphex
ebb0906f3e Remove function 2015-12-09 09:10:21 +01:00
twinaphex
902997c579 Remove gfx_ctx_data_get_ptr 2015-12-09 09:05:55 +01:00
twinaphex
b7988a33fe shader_driver_ctx_init_first renamed 2015-12-09 08:45:55 +01:00
Higor Eurípedes
d602b8ed5a (d3d) Fix build 2015-12-08 22:16:55 -03:00
Higor Eurípedes
962455fafa (vg) Fix build again 2015-12-08 21:59:59 -03:00
Higor Eurípedes
dc371da6ed (vg) Fix build 2015-12-08 21:51:29 -03:00
Higor Eurípedes
1f51a0d948 (videocore) Fix build 2015-12-08 19:34:26 -03:00
Higor Eurípedes
39b238151f (androidegl_ctx) Lock android_app before accessing it 2015-12-08 19:26:32 -03:00
Higor Eurípedes
7dcecc500f (cocoa) Fix warning 2015-12-08 17:33:59 -03:00
Higor Eurípedes
c2d4da4660 (mali) Convert to new egl common api 2015-12-08 17:33:59 -03:00
Higor Eurípedes
9e90efacbb (videocore) Convert to new egl common api 2015-12-08 17:33:59 -03:00
Higor Eurípedes
98baf27a99 (vivante-fbdev) Convert to new egl common api 2015-12-08 17:33:59 -03:00
twinaphex
77f1bbdb26 (D3D) Buildfix 2015-12-08 20:55:19 +01:00
Higor Eurípedes
7135dfb597 (d3d) Fix build 2015-12-08 16:03:25 -03:00
twinaphex
a5d0770268 (PS3) Get rid of gfx_ctx_free_data 2015-12-08 19:56:43 +01:00
twinaphex
39499eb107 Silence 'cannot be reached' warnings 2015-12-08 19:54:36 +01:00
Higor Eurípedes
5b7069b377 (bbqnx_ctx.c) Convert to the new egl common api 2015-12-08 14:56:46 -03:00
Higor Eurípedes
3a7f93d459 (android_ctx.c) Use the new egl common api 2015-12-08 14:30:45 -03:00
Higor Eurípedes
1cf574cfbe Move most of egl_common globals into egl_ctx_data_t 2015-12-08 13:54:03 -03:00
Higor Eurípedes
c257374dcd (video_context_driver) Make better use of the data argument in context calls 2015-12-08 12:19:08 -03:00
twinaphex
a95762e5cb Create egl_has_config 2015-12-08 14:42:02 +01:00
twinaphex
0f94353b28 Create egl_get_native_visual_id 2015-12-08 14:38:06 +01:00
twinaphex
34dbd35642 Revert "Remove some unnecesary functions"
This reverts commit 1f13f26ba4.
2015-12-08 12:55:43 +01:00
twinaphex
91dcce5d58 Rearrange header 2015-12-08 11:52:32 +01:00
twinaphex
1f13f26ba4 Remove some unnecesary functions 2015-12-08 11:21:57 +01:00
twinaphex
bae51fb3bd Turn rarch_threaded_video_send_and_wait to static function 2015-12-08 11:17:26 +01:00
twinaphex
1ea3b54411 Move definition of thread_packet to video_thread_wrapper.c 2015-12-08 11:09:09 +01:00
twinaphex
aa6c7a5ed3 Create two new threading command wrapper functions 2015-12-08 11:05:18 +01:00
twinaphex
a18811bff6 Remove some obsolete state 2015-12-08 10:34:27 +01:00
twinaphex
c614118ed8 Move context_bind_hw_render inline function to gl.c 2015-12-08 09:44:19 +01:00
twinaphex
75f10bfcdb Remove unused variable 2015-12-08 09:33:36 +01:00
twinaphex
9f96742576 Take out some header includes 2015-12-08 09:30:44 +01:00
twinaphex
f11bed2bdd Get rid of gl->shader parameter 2015-12-08 09:29:23 +01:00
twinaphex
df60523f6c Move current_shader pointer to video_shader_driver.c 2015-12-08 09:27:25 +01:00
twinaphex
9736713279 Create RARCH_DISPLAY_CTL_SET_STUB_FRAME/UNSET_STUB_FRAME 2015-12-07 21:16:15 +01:00
twinaphex
77b7e5b791 (GX) Remove dependency on menu_driver_get_ptr 2015-12-07 15:58:41 +01:00
twinaphex
2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
twinaphex
0df4a8d2a2 Put message from video_driver_frame into separate buffer
temporarily for safety
2015-12-07 10:59:53 +01:00
twinaphex
e8a3bd99d8 (3DS/CTR) Buildfix 2015-12-07 09:32:58 +01:00
Twinaphex
15cb1c560a (gfx/video_texture_c.c) Add HAVE_D3D/HAVE_OPENGL ifdefs 2015-12-07 08:06:50 +01:00
Twinaphex
c1bb8f711d Fix some warnings for non-HAVE_THREADS targets 2015-12-07 08:00:27 +01:00
twinaphex
cbdd305626 Add HAVE_THREADS ifdef 2015-12-06 22:42:22 +01:00
twinaphex
a4de5895d8 nit 2015-12-06 21:58:51 +01:00
twinaphex
137757d832 gfx/video_texture_c.c - add HAVE_THREADS ifdef 2015-12-06 21:58:12 +01:00
twinaphex
7f433a36d5 Move rthreads.h header include to video_thread_wrapper.c 2015-12-06 21:35:55 +01:00
twinaphex
9b65988682 Create rarch_threaded_video_send_and_wait 2015-12-06 21:34:39 +01:00
twinaphex
37286ca894 header cleanup 2015-12-06 21:31:20 +01:00
twinaphex
ae58a9ed19 Check if shader->deinit function is bound first 2015-12-06 21:19:52 +01:00
twinaphex
6fbdd319f4 Add header include 2015-12-06 19:59:15 +01:00
twinaphex
c6359d6dbc Divorce g_system_menu from global state 2015-12-06 19:31:47 +01:00
Twinaphex
4e14e6e6fa Merge pull request #2529 from heuripedes/master
(shader_glsl.c) Fix memory leak
2015-12-06 18:31:50 +01:00
twinaphex
99ea0095a3 Create RARCH_MENU_CTL_FRAME 2015-12-06 18:28:37 +01:00
Higor Eurípedes
9bb36cac38 (shader_glsl.c) Fix memory leak 2015-12-06 14:23:51 -03:00
twinaphex
0389474e12 Set dangling pointers to null for RARCH_DISPLAY_CTL_DEINIT
and RARCH_AUDIO_CTL_DEINIT too
2015-12-06 18:15:00 +01:00
twinaphex
a3033c2f66 Buildfixes 2015-12-06 18:12:49 +01:00
twinaphex
09ecd04d67 Make sure gpu_buffer is set back to NULL too upon
RARCH_DISPLAY_CTL_DESTROY time
2015-12-06 17:33:51 +01:00
twinaphex
0f9ba38b76 Make sure all static local variables from video_driver_ctl are
reset back to default state after calling RARCH_DISPLAY_CTL_DESTROY
2015-12-06 17:17:08 +01:00
twinaphex
083d1fec69 video_driver_frame - cleanup 2015-12-06 15:24:06 +01:00
twinaphex
bbbf6513fd move gpu record buffer to video_driver.c 2015-12-06 15:22:20 +01:00
twinaphex
a23598e553 Don't need video_driver_current_msg anymore 2015-12-06 14:32:30 +01:00
twinaphex
39e9d5c5ba Start cutting down on the size of some char local variables - we
don't need PATH_MAX_LENGTH for everything
2015-12-06 13:28:20 +01:00
twinaphex
38a7338592 Fix video_shader_driver_get_current_shader 2015-12-06 11:22:16 +01:00
twinaphex
693e684b4f (font_driver.c) Turn some functions static and remove others that
are unused
2015-12-05 22:58:52 +01:00
twinaphex
ec1b1c3e54 Header cleanups 2015-12-05 21:23:34 +01:00
twinaphex
c79c205a0d Header include cleanup 2015-12-05 20:26:37 +01:00
twinaphex
f45867d1cd More CXX_BUILD fixes 2015-12-05 18:56:37 +01:00
twinaphex
05b1097d37 Rearrange some headers 2015-12-05 18:45:15 +01:00
twinaphex
5b939e810c Get rid of driver_t and driver_get_ptr 2015-12-05 16:54:13 +01:00
twinaphex
18ab12ab83 Take header include record_driver.h out of driver.h 2015-12-05 16:12:29 +01:00
twinaphex
7e5d1f3117 Only rcord_driver.c references driver->recording now 2015-12-05 16:05:35 +01:00
twinaphex
736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex
03e2873296 (D3D) Buildfixes 2015-12-05 13:31:02 +01:00
twinaphex
2f29d9f18c Take out menu/menu_driver.h include from driver.h 2015-12-05 13:22:50 +01:00
twinaphex
c8d8176c0c Get rid of unused variables 2015-12-05 12:50:56 +01:00
twinaphex
6a00c1cf9a Take font driver handles out of driver_t struct 2015-12-05 12:25:53 +01:00
twinaphex
612c05ac71 (Xbox) Buildfix 2015-12-05 12:21:20 +01:00
twinaphex
78fef6422b Create font_driver_get_message_width 2015-12-05 12:17:58 +01:00
twinaphex
df813ad58b Create font_driver_flush 2015-12-05 12:10:12 +01:00
twinaphex
df1c6344be Merge font_renderer_driver.c and font_driver.c 2015-12-05 12:07:22 +01:00
twinaphex
44b708642c Expand font_driver_bind_block 2015-12-05 11:34:56 +01:00
twinaphex
988162ed62 Cut down on code duplication 2015-12-05 11:29:06 +01:00
twinaphex
5f27366cb3 Expand font_driver_init_first 2015-12-05 11:18:05 +01:00
twinaphex
4c8a2a3f88 Create font_driver_bind_block 2015-12-05 10:59:03 +01:00
twinaphex
a26e64e24d Expand font_driver_free 2015-12-05 10:54:53 +01:00
twinaphex
e196fdf141 font_driver_render_msg - make it possible to pass special font data 2015-12-05 10:49:28 +01:00
twinaphex
c88d795734 Start using font driver wrapper functions 2015-12-05 10:33:50 +01:00
twinaphex
89721b8837 Start creating font driver wrapper functions 2015-12-05 10:31:15 +01:00
twinaphex
ddff980161 Remove unused variables 2015-12-05 09:14:55 +01:00
twinaphex
f72b69e8d1 Don't include frontend_driver.h as part of driver.h 2015-12-05 09:09:31 +01:00
twinaphex
c36b8e1ae9 Don't touch driver->frontend outside of frontend_driver.c anymore 2015-12-05 08:52:01 +01:00
twinaphex
1fcf63735f Header include changes 2015-12-05 07:45:36 +01:00
twinaphex
e735f84baa Refactor shader subsystem 2015-12-05 07:33:32 +01:00