Commit Graph

775 Commits

Author SHA1 Message Date
twinaphex 6d37cfc2fb Create video_shader_driver_get_prev_textures 2015-12-04 16:34:58 +01:00
twinaphex a2da59ac9b Create video_shader_driver_set_coords and video_shader_driver_set_mvp 2015-12-04 16:33:07 +01:00
twinaphex 827b3cc89b Create video_shader_driver_num_shaders 2015-12-04 16:19:12 +01:00
twinaphex 0ed77247a8 Create video_shader_driver_mipmap_input 2015-12-04 16:16:40 +01:00
twinaphex c8f2ef7734 Create video_shader_driver_get_ident 2015-12-04 16:05:42 +01:00
twinaphex 1956dffe9b Create video_shader_driver_use 2015-12-04 16:01:09 +01:00
twinaphex bdf099a19c Create video_shader_driver_deinit 2015-12-04 15:56:36 +01:00
twinaphex de555d6040 Replace all instances of shader->init 2015-12-04 15:54:10 +01:00
twinaphex 3f6540dd58 Start using video_shader_driver_init for D3D too 2015-12-04 15:53:02 +01:00
twinaphex 11109a198b Create video_shader_driver_init 2015-12-04 15:50:40 +01:00
twinaphex e73224c5c2 Get rid of superfluous log 2015-12-03 23:24:54 +01:00
twinaphex eda3e06898 (GL) Guard against possible segfaults in threaded video mode 2015-12-03 23:16:37 +01:00
twinaphex beb01b5d57 Create gl_init_textures_reference 2015-12-03 22:42:54 +01:00
Twinaphex 96da691728 Revert "Revert "(gl) Fix gl->should_resize being always true""
This reverts commit d35840ebcd.
2015-12-01 07:15:06 +01:00
Twinaphex d35840ebcd Revert "(gl) Fix gl->should_resize being always true"
This reverts commit 0f339caf30.
2015-12-01 04:58:47 +01:00
Higor Eurípedes 0dfccf2785 (sdl2_video) Fix floating point exception 2015-11-30 21:32:32 -03:00
Higor Eurípedes 0f339caf30 (gl) Fix gl->should_resize being always true 2015-11-30 21:32:32 -03:00
twinaphex 0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex 9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex 4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex 1c867cedf0 Move nonblock_state to input_driver.c (NOTE: we probably need
to relocate this later on)
2015-11-29 17:53:11 +01:00
twinaphex b8df5fd584 (exynos_gfx.c) Nits 2015-11-29 01:43:58 +01:00
twinaphex 127448f848 Use video_driver_window_get 2015-11-29 01:39:28 +01:00
twinaphex 0044d853f8 Move display_type / display_window etc all to gfx/video_driver.c -
no more dependencies on driver_t
2015-11-29 01:12:49 +01:00
twinaphex 8ce6582fa4 Create drm_wait_flip 2015-11-28 17:16:19 +01:00
twinaphex 200b41bb58 (dispmanx_gfx.c) Nit 2015-11-28 17:07:52 +01:00
twinaphex 70850c8ca3 (dispmanx_gfx.c) Cleanups 2015-11-28 17:00:44 +01:00
Higor Eurípedes 9bc10fef7a (gl) Fix invalid enum error 2015-11-27 21:53:31 -03:00
Higor Eurípedes 428bc30a61 (gl) Add checks for full npot support 2015-11-27 21:21:23 -03:00
twinaphex dd68465f74 (exynos_gfx.c) Cleanups 2015-11-26 19:38:17 +01:00
twinaphex 7c52d380bf Move memsetting of fds and evctx to drm_common.c 2015-11-26 18:59:36 +01:00
twinaphex 00cf57eac0 Header include drm_common.h already includes essential
DRM headers
2015-11-26 18:57:29 +01:00
twinaphex 25680ec8a6 Create more DRM common functions 2015-11-26 18:47:07 +01:00
twinaphex 60ead8f6b1 Create drm_get_encoder 2015-11-26 18:23:51 +01:00
twinaphex 2693e16f1e (Exynos/DRM EGL context driver) Unify more code 2015-11-26 18:05:27 +01:00
twinaphex 7e08f5d908 Create drm_free 2015-11-26 17:34:35 +01:00
twinaphex e06121b661 Move more common code to drm_common.c 2015-11-26 17:30:01 +01:00
twinaphex 8f9c652693 Add gfx/common/drm_common.c and gfx_common/drm_common.h 2015-11-26 17:12:06 +01:00
twinaphex c720bce8a9 Update variable name/buildfix 2015-11-26 02:29:43 +01:00
aliaspider be5755fe59 (3DS) build fix. 2015-11-24 12:02:02 +01:00
Twinaphex 0958acd0b1 Merge pull request #2455 from aliaspider/master
(3DS) update.
2015-11-24 11:36:00 +01:00
aliaspider 38579e56ff (3DS) gfx driver: add missing d-cache flush. 2015-11-24 11:25:28 +01:00
twinaphex 516422b1d1 Build fix 2015-11-24 00:23:32 +01:00
twinaphex a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
twinaphex deae90e0bb Move use_rgba to gfx/video_driver.c - get rid of driver_t dependencies 2015-11-23 23:58:40 +01:00
twinaphex 32b363c75e Cleanups 2015-11-23 21:32:05 +01:00
twinaphex 6f18656baa driver->video_context should be self-contained now to video_context_driver.c 2015-11-23 21:20:21 +01:00
Alcaro 7b66b65823 Add some error messages if the null drivers are used. 2015-11-23 19:42:46 +01:00
twinaphex c0cc5fac53 Cleanups 2015-11-23 18:25:42 +01:00
twinaphex 8030f91667 Don't use video_driver_get_ptr inside shader_null 2015-11-23 16:41:50 +01:00
twinaphex 4cccd6d596 (sdl2_gfx.c) Buildfix 2015-11-23 14:55:20 +01:00
twinaphex beceaf4a8c Merge video_pixel_converter.c with video_driver.c 2015-11-23 13:02:24 +01:00
twinaphex 86504392b9 Create video_driver_set_size 2015-11-23 12:54:15 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex 85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex 892d99b3a6 Add SET_VIEWPORT_CONFIG 2015-11-21 13:13:55 +01:00
twinaphex 806c124eae Merge video_viewport.c and video_driver.c 2015-11-21 13:01:23 +01:00
twinaphex 5b44bd0e6b Create RARCH_DISPLAY_CTL_SET_VIEWPORT_SQUARE_PIXEL 2015-11-21 12:54:38 +01:00
twinaphex 4db97a5300 Refactor away video_viewport_set_core 2015-11-21 12:45:36 +01:00
twinaphex cf5533ccaa Refactor away video_viewport_reset_custom 2015-11-21 12:36:14 +01:00
twinaphex 0f33722f5d Refactor Wii per-game resolution mode to be somewhat generic 2015-11-21 08:56:24 +01:00
twinaphex 6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
aliaspider 7f5ae4bdba (3DS) can compile with latest ctrulib/great-refactor.
fix some warnings.
2015-11-19 23:15:48 +01:00
twinaphex c8130120bc Turn g_x11_has_focus into static variable 2015-11-19 12:23:01 +01:00
twinaphex 655520aeec Create x11_install_quit_atom 2015-11-19 12:18:35 +01:00
twinaphex 9b44a2496b (xvideo.c) Cleanup 2015-11-19 12:15:37 +01:00
twinaphex e3aba24e42 (X11) Code de-duplication 2015-11-19 12:05:32 +01:00
twinaphex 50cd3bc185 Create x11_colormap_destroy 2015-11-19 11:55:05 +01:00
twinaphex 48495980ba Create x11_window_destroy 2015-11-19 11:49:09 +01:00
twinaphex ce2b973beb Create x11_input_ctx_new/x11_input_ctx_destroy 2015-11-19 11:27:41 +01:00
twinaphex 56e5d0bf3e Create g_x11_xim 2015-11-19 11:24:56 +01:00
twinaphex f868cbab31 Create x11_update_window_title 2015-11-19 11:18:57 +01:00
twinaphex eb31cf4d43 Cleanup xv_focus 2015-11-19 11:14:28 +01:00
twinaphex d23557d38e Start restricting scope of g_x11_has_focus 2015-11-19 11:13:59 +01:00
twinaphex 95a5818ccb Create x11_install_sighandlers 2015-11-19 11:04:17 +01:00
twinaphex 704709f82e (xvideo.c) Reorder headers 2015-11-19 10:54:30 +01:00
twinaphex 8480bc3c19 Create x11_alive - get rid of some code duplication in xvideo.c 2015-11-19 10:46:16 +01:00
twinaphex 66c15314e2 Get rid of some header files 2015-11-19 08:56:08 +01:00
twinaphex 9d98bfbe6b (GX) Move defines to defines/gx_defines.h 2015-11-18 12:55:28 +01:00
twinaphex 3b7e53bf58 (GX) Cleanups 2015-11-18 12:18:43 +01:00
twinaphex a3a5a82d47 (GL) doesn't access global state anymore 2015-11-18 03:08:19 +01:00
twinaphex b5929e800f Get rid of useless cast 2015-11-17 08:47:42 +01:00
twinaphex 2078331495 Move gfx/pixman to gfx/include 2015-11-17 08:35:00 +01:00
twinaphex 239ae7de53 Move gl_common to gfx/common 2015-11-17 08:01:33 +01:00
twinaphex 68421a7521 (GX) Rollback 2015-11-17 04:29:09 +01:00
twinaphex 656edd4477 (GX) Buildfix 2015-11-15 21:16:29 +01:00
twinaphex 8a43aecb11 (GX) Style nits 2015-11-15 21:09:32 +01:00
twinaphex 5e7f90eae8 (GX) Style nits 2015-11-15 21:06:55 +01:00
twinaphex 37b4735c4c (GX) move variables to gx_video_t 2015-11-15 20:44:30 +01:00
twinaphex 1009f12939 (GX) Add framebuf to gx video struct 2015-11-15 20:33:31 +01:00
twinaphex 1ef9601966 Revert "(GL) Cleanups"
This reverts commit 36d5cc890b.
2015-11-14 05:27:44 +01:00
aliaspider 13699280b4 (3ds) video driver:
- fix frame dupes
- bypass DMA for small frames.
2015-11-12 15:00:53 +01:00
twinaphex 7e592df3e8 (vg.c) Variable rename 2015-11-11 03:28:40 +01:00
twinaphex 36d5cc890b (GL) Cleanups 2015-11-10 15:32:07 +01:00
twinaphex ed35db13e8 Fix some linking errors with CXX_BUILD 2015-11-09 05:23:11 +01:00
twinaphex 7e207626ad (gl.c) Add video_texture.h header include 2015-11-09 02:08:40 +01:00
twinaphex 8a55aae0a5 Move gl_load_texture_data to video_texture_c 2015-11-09 02:07:17 +01:00
Andrés d638a12c87 Merge pull request #2328 from aliaspider/master
(3DS) implement dynamic memory management.
2015-11-01 19:27:27 -05:00
aliaspider 8741ec48d5 (3DS) implement dynamic memory management.
heap/linear heap and stack sizes can now change dynamically at runtime,
depending on usage, no need to specify those on a per-core basis
anymore.
2015-11-02 01:24:11 +01:00
twinaphex 40a4a7a354 (OSX PPC/PS3) Forcibly disable mipmapped textures 2015-11-01 16:11:17 +01:00
twinaphex 922e6f868b Don't assume we can use NPOT mipmapped textures for anything GLES2 2015-10-30 16:23:44 +01:00
Twinaphex c85414c7be (iOS) Force mipmapping off for textures on iOS 2015-10-29 23:23:56 +01:00
twinaphex df01279cf3 Add non-HAVE_MENU ifdefs 2015-10-28 00:55:11 +01:00
Twinaphex 0447c1b442 Merge pull request #2293 from aliaspider/master
(3DS) - add an audio driver using the DSP.
2015-10-27 01:38:38 +01:00
aliaspider aeeb2a62d6 (3DS) - add an audio driver using the DSP.
- add some hooks to inspect memory usage.
2015-10-27 01:06:34 +01:00
twinaphex 02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
aliaspider ac119b04f6 (CTR/3DS) improve memory management.
- use a custom crt0 to allow overriding __heap_size and
__linear_heap_size
- add a setting for maximum heap size. unallocated memory can be freely
mapped by the core.
- add better detection of the extra memory available when running from
the HBL.
2015-10-22 20:35:22 +01:00
aliaspider 339acfecf1 (CTR/3DS) update code to use ctrulib/great-refactor 2015-10-21 15:41:06 +01:00
aliaspider 3a30baab57 (CTR/3DS) add support for RETRO_PIXEL_FORMAT_XRGB8888 2015-10-20 16:03:39 +01:00
aliaspider 8cc805c38a (CTR/3DS) reduce memory usage.
build fix.
2015-10-20 12:34:53 +01:00
twinaphex 2b9e5539fb Add another HAVE_FBO ifdef 2015-10-11 16:54:01 +02:00
twinaphex 6683ab16ef (GL) Add HAVE_FBO ifdef around FBO feedback code 2015-10-11 16:53:18 +02:00
twinaphex ab2aec9b66 xshm.c - buildfix 2015-10-11 16:22:59 +02:00
Alcaro f4a5cbbe5b Add this half-finished (okay, 5%-finished) driver. 2015-10-11 09:50:49 +02:00
twinaphex a61104dba3 Create video_shader_scale 2015-10-07 18:18:49 +02:00
aliaspider fc1524be5d (CTR/3DS) nit. 2015-10-06 19:57:46 +01:00
aliaspider 44dc270c87 (CTR/3DS) use an aptHook to enable the LCD when the app is suspended. 2015-10-06 19:56:11 +01:00
aliaspider b7be1862a3 (CTR/3DS) increase the default size of the linear heap.
makefile: allow changing stack/linear heap size without requiring a
clean.
2015-10-05 21:45:17 +01:00
aliaspider b9978317cc (CTR/3DS) video driver: increase texture width. 2015-10-04 19:22:23 +01:00
aliaspider 71efe15bce (CTR/3DS) don't turn off the LCD for 2DS models. 2015-10-03 19:37:01 +01:00
aliaspider 68e2c306a9 (CTR/3DS) video driver: better detection of frames allocated with
linearAlloc.
2015-10-02 04:59:16 +01:00
Francisco José García García 8e652f613a (Vita) OSD messages 2015-10-02 00:11:54 +02:00
aliaspider c9acd9156c (CTR/3DS) gfx driver: remove useless printf. 2015-10-01 18:28:27 +01:00
aliaspider 63ab3b02b8 (CTR/3DS) shut down the LCD backlight when toggling the buttom display
off.
courtesy of @thedax.
2015-10-01 18:12:59 +01:00
twinaphex e4a781b489 (GX) Buildfix 2015-09-29 21:47:43 +02:00
Francisco José García García 4f7be65f32 (Vita) Add Overlays 2015-09-29 20:01:42 +02:00
twinaphex 87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex e986b9e42a Static code analysis cleanups 2015-09-29 17:35:28 +02:00
Twinaphex 4f02326171 Merge pull request #2179 from aliaspider/master
(CTR/3DS) improve audio/video sync.
2015-09-28 21:50:10 +02:00
aliaspider 48ec5190ba (CTR/3DS) improve audio/video sync. 2015-09-28 20:09:07 +01:00
twinaphex 0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex 631da50dfa More static code analysis nits 2015-09-28 18:22:27 +02:00
twinaphex 4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
Twinaphex b1f6c88626 Merge pull request #2177 from aliaspider/master
(CTR/3DS) update
2015-09-28 16:21:57 +02:00
twinaphex a79b571d7b Static code analysis fixes 2015-09-28 16:20:26 +02:00
aliaspider a2d552a819 (CTR/3DS) allow toggling the console on/off.
the upper part of the touchscreen toggles the console, the lower part
the main menu.
2015-09-28 14:54:48 +01:00
twinaphex 0d18c61bc5 Add RARCH_MAIN_CTL_IS_PAUSED 2015-09-26 13:04:07 +02:00
twinaphex cc4a918296 Create rarch_main_ctl 2015-09-26 12:58:02 +02:00
twinaphex 6482969459 (Menu) Cleanups/refactors 2015-09-25 21:20:26 +02:00
twinaphex 653a0e5773 (GX) Buildfix 2015-09-25 21:12:15 +02:00
twinaphex 0a913c929d (GX) Start using menu_display_ctl 2015-09-25 21:11:37 +02:00
twinaphex 1329b4f265 (Menu) Cleanups 2015-09-25 21:07:12 +02:00
twinaphex b9ba75403e (GL) Fix mixe code declaration (for C89_BUILD) 2015-09-21 11:50:02 +02:00
twinaphex dfeefc0e16 Rename and move vi_encoder.c 2015-09-20 15:05:30 +02:00
twinaphex 07f5d2e399 (Wii) Buildfixes 2015-09-20 15:03:49 +02:00
twinaphex 2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
Andrés 88db140c32 Merge pull request #2146 from aliaspider/master
(CTR/3DS) fix build.
2015-09-20 01:58:27 -05:00
aliaspider a5b61354f0 (CTR/3DS) fix build. 2015-09-20 07:48:16 +01:00
twinaphex 9ce3b9d916 (GX) Use retro_file 2015-09-18 07:08:25 +02:00
Francisco García 9060feba92 (Vita) Set background color to black 2015-09-17 11:08:06 +02:00
Francisco José García García 08f5db24b4 (Vita) vita2d updated 2015-09-15 00:12:10 +02:00
twinaphex ea6119c1c7 (Vita) Add forward declaration for scePowerSetArmClockFrequency 2015-09-14 03:50:34 +02:00
aliaspider 9c6ce3b28b (CTR/3DS) start with bilinear filtering set to ON. 2015-09-14 01:59:58 +01:00
aliaspider 591ecae208 (CTR/3DS) add support for viewport/filtering settings.
rotation doesn't work correctly yet.
2015-09-14 00:19:38 +01:00
aliaspider c3ac725269 (CTR/3DS) improve vsync.
gfxSwapBuffersGpu needs to be called immediately after initiating a
display transfer.
2015-09-13 22:27:28 +01:00
Francisco José García García f5eba9f8a6 (Vita) Add Rotation 2015-09-11 18:02:59 +02:00
Francisco José García García 1e0526b9c7 (Vita) Add viewport resizing 2015-09-09 01:10:48 +02:00
Francisco José García García 76e13a6957 (Vita) Add texture filtering 2015-09-08 20:40:38 +02:00
aliaspider 3b85e0dd5a (3DS) fix build to work with the latest ctrulib. 2015-09-07 18:31:30 +01:00
twinaphex bbe210f7eb C89_BUILD fixes 2015-09-06 23:43:27 +02:00
twinaphex 1310263470 (Vita) Cleanups 2015-09-05 16:22:25 +02:00
Sergi Granell 4dfaa33ad1 (Vita) Update the vita2d video driver 2015-09-02 18:56:24 +02:00
Sergi Granell 5d920aa045 (Vita) vita2d_gfx_free: Set textures to NULL 2015-09-01 01:36:27 +02:00
Sergi Granell dbb91c85e6 (Vita) Check vita->texture before freeing it 2015-08-31 21:41:45 +02:00
Sergi Granell 56af52a268 (Vita) Fix spaces 2015-08-31 21:37:50 +02:00
Sergi Granell 6c5d250ff1 (Vita) Prepare code for fullscreen 2015-08-31 21:31:34 +02:00
Sergi Granell 96146e5313 (Vita) Update vita2d driver
(Vita/PSP) Name some stuff to vita
2015-08-31 15:26:37 +02:00
Sergi Granell 94e893634d (Vita) Update gfx driver 2015-08-31 00:56:14 +02:00
twinaphex 3c6d0dd77c Some PSP1 build fixes and start adding PSP1 support to
Makefile.griffin
2015-08-30 23:19:45 +02:00
Sergi Granell 5deceb35ba (Vita) Update Vita frontend 2015-08-30 22:48:44 +02:00
Sergi Granell 3b04de6a5f (Vita) Update vita2d video driver 2015-08-30 20:12:16 +02:00
Sergi Granell 3b54e81d00 (Vita) Start vita2d_gfx video driver 2015-08-30 20:12:16 +02:00
Twinaphex d5f72ca9c1 remove unused variables 2015-08-30 18:45:02 +02:00
Twinaphex e8d266cb9d Revert "Revert "Add support for shader pass feedback."" 2015-08-30 18:37:41 +02:00
Twinaphex ad1825ca50 Revert "Add support for shader pass feedback." 2015-08-30 18:21:07 +02:00
CautiousAlbino aee5e74001 Add support for shader pass feedback. 2015-08-30 16:23:55 +02:00
twinaphex 5489634f40 (GX) Fix gx_frame signature 2015-08-16 03:12:12 +02:00
twinaphex 2d8ef11944 (sdl2_gfx.c) Check if pointer is not NULL first 2015-08-12 19:24:56 +02:00
Alcaro ee2ad0c4bd These aren't executable. 2015-08-12 01:31:03 +02:00
radius 828734e007 don't try to autoconfigure GPIO devices 2015-08-11 17:13:25 -05:00
twinaphex 77aa7535c9 MOve all 'define' headers to central place ' defines' 2015-08-10 23:11:40 +02:00
Twinaphex 5bafed71ea removed unused variables 2015-08-05 13:09:11 +02:00
twinaphex b18442dc5a Refactor is_slowmotion 2015-08-05 13:06:44 +02:00
twinaphex ccac72f1e7 Refactor is_paused 2015-08-05 12:58:25 +02:00
twinaphex 0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
twinaphex bd6ee135e9 Take out runloop_t dependencies 2015-08-03 20:03:14 +02:00
vanfanel eb7bf55d90 VIDEO/SUNXI: Reworked where aspect ratio is changed in order to avoid variable. 2015-07-21 14:33:02 +02:00
vanfanel 0776932b3a VIDEO/SUNXI: Make setting aspect ratio in menu work and fixed segfault on new content loading. 2015-07-21 14:22:39 +02:00
twinaphex 7df80fea83 Take out one ifndef HAVE_PSGL preprocessor define 2015-07-21 01:58:57 +02:00
twinaphex 218f52c5bf Minor nits 2015-07-21 01:45:32 +02:00
vanfanel 824c647377 VIDEO/SUNXI: fixed compilation because of a couple of small errors coming from cleanups. 2015-07-18 20:33:07 +02:00
twinaphex c697923eb6 Create video_common.c 2015-07-12 05:30:04 +02:00
twinaphex 38fd0592f5 Create video_common.h 2015-07-12 04:23:27 +02:00
twinaphex b46f3c9c29 (gl_common.h) Cleanups 2015-07-12 04:20:48 +02:00
twinaphex 4b8e65322c Rename gl_tex_info to gfx_tex_info 2015-07-12 04:16:40 +02:00
twinaphex a687ca54d8 (gl_common.c) Refactors 2015-07-12 04:11:26 +02:00
twinaphex 6bb0d87d87 Rename gl_font_raster_block to gfx_font_raster_block 2015-07-12 04:07:06 +02:00
twinaphex 4c1562fb70 Rename gl_fbo_rect to gfx_fbo_rect 2015-07-12 04:04:56 +02:00
twinaphex c5f2b7e8a1 rename gl_mut_coords to gfx_mut_coords 2015-07-12 04:01:22 +02:00
twinaphex 55054f257a Rename gl_ortho to gfx_ortho 2015-07-12 04:00:25 +02:00
twinaphex 41e28460fa Rename gl_coord_array to gfx_coord_array 2015-07-12 03:58:53 +02:00
twinaphex 527c0c29d4 Rename gl_coords to gfx_coords 2015-07-12 03:57:06 +02:00
twinaphex c3f5ea0fcc Make input_overlay.h no longer depend on RPNG image 2015-07-11 08:14:39 +02:00
twinaphex 2ec593f3b4 (omap_gfx.c) Can't have global state dependencies in video drivers 2015-07-10 19:55:34 +02:00
twinaphex 6f4e53e454 Remove unused variables 2015-07-08 22:04:37 +02:00
radius 2aa7c46e78 change the approach to wii resolution changing, this is more stable 2015-07-06 16:07:33 -05:00
radius 84fe1b0376 remove function we won't be using 2015-07-06 00:31:40 -05:00
radius d09490789a implement wii resolution saving 2015-07-06 00:29:51 -05:00
Higor Eurípedes 890417a581 (gl.c) Fix taking screenshots from GLUI/XMB 2015-07-01 18:46:39 -03:00
twinaphex 3fd11686cb (gl.c) Refactor 2015-06-30 19:07:53 +02:00
twinaphex 25aac8282e (SDL2) Cleanups 2015-06-30 15:35:32 +02:00
twinaphex 4d538a95f2 (SDL2) Cleanups 2015-06-30 14:53:05 +02:00
vanfanel ba69eda47e DISPMANX: Rewrote surface management functions: fixed dispmanx-related errors when changing core or loading new content. 2015-06-27 19:14:30 +00:00
twinaphex 97f10e4a64 Some more C89 compatibility fixes 2015-06-26 19:34:19 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro febcbc5ce4 C89 cleanups part 2 2015-06-26 17:48:43 +02:00
Alcaro 1bbd54f597 Some C89 strict fixes 2015-06-26 17:03:12 +02:00
twinaphex 682867b9a1 MAX_SHADERS should only be defined in gl_common.h 2015-06-22 21:09:18 +02:00
vanfanel bb7d9436c2 DISPMANX correction: the pointer to the page currently on screen must be a member of each surface. 2015-06-20 14:56:25 +00:00
vanfanel 430f7854d9 Removed unused variable. Changed a function type. 2015-06-18 16:16:26 +00:00
vanfanel 98e6522f3f Fixed a memory allocation error and simplified surface resource freeing functions. 2015-06-18 12:31:42 +00:00
vanfanel 26b0876376 DISPMANX backend: implemented a faster triple buffering method and abstracted drawing surfaces for core and menu in their own class-like struct. Honor the aspect ratio setting changes without re-launching. Cleanups. 2015-06-16 19:30:16 +00:00
twinaphex 40f8fabda6 Consistency in how we treat positive strcmp matches 2015-06-14 19:56:01 +02:00
twinaphex 3943f4633f (GX/Wii) Cleanups - grab pointer to menu_framebuf_t 2015-06-13 17:01:38 +02:00
twinaphex 7197b58ed6 (gfx/drivers) Cleanups 2015-06-13 02:49:29 +02:00
twinaphex 5068e2ddbf (xvideo.c) Style nits 2015-06-03 21:37:08 +02:00
twinaphex 0cbd1f0882 Don't define HAVE_GL_ASYNC_READBACK if GL_PIXEL_PACK_BUFFER is not
defined
2015-06-02 18:51:42 +02:00
twinaphex 70fc26677d Define GL_SYNC_ defines if not available 2015-06-02 17:31:43 +02:00
amigagamer 55934b4770 fix dispmanx compile (dispmanx_gfx_get_frame_count)
line 601 looking for dispmanx_get_frame_count
the correct name is dispmanx_gfx_get_frame_count (from line 592)
2015-05-30 17:00:06 +01:00
twinaphex e04dff82b5 Add some notes 2015-05-20 23:04:15 +02:00
twinaphex 6e327a3b8d Get rid of more unused global local pointers 2015-05-20 22:48:33 +02:00
twinaphex cf2c0f6930 Rename rarch_render_cached_frame to video_driver_cached_frame 2015-05-20 21:06:44 +02:00
twinaphex d2b76a7d13 Move pix_fmt to video_state 2015-05-20 20:59:12 +02:00
twinaphex d8622e0a92 (GL) Prevent unused variable warning 2015-05-20 20:01:29 +02:00
twinaphex a81baed9e2 Move hw_render_callbakc to video driver state and take it out
of global state
2015-05-20 19:56:12 +02:00
twinaphex 9f7c6fcb97 Cleanups 2015-05-20 19:30:15 +02:00
twinaphex 679feefae3 Start using const for non-mutating variables 2015-05-20 19:28:05 +02:00
twinaphex 2f62cd65e2 Start using video_viewport_get_custom everywhere 2015-05-20 19:12:39 +02:00
Twinaphex d33cad3381 (GL) Take out unused global variable 2015-05-20 18:57:57 +02:00
twinaphex a053b41223 Create video_viewport_get_system_av_info and video_viewport_get_custom -
move custom viewport and system av info outside of global state
2015-05-20 18:57:17 +02:00
twinaphex b255b5a325 Create video_driver_set_aspect_ratio_value and video_driver_get_aspect_ratio 2015-05-20 18:24:45 +02:00
twinaphex 969bbdd85d Get rid of some unused runloop variables 2015-05-20 03:13:42 +02:00
twinaphex 4352cca599 Cleanup last remaining references 2015-05-20 02:40:44 +02:00
twinaphex 23fe7886d2 (GL) GL driver should be free now from global->video_data.width/
global->video_data.height dependencies
2015-05-20 02:22:03 +02:00
twinaphex b573e5f4dc (GL) Refactor code to no longer use global->video_data.width/global->video_data.height 2015-05-20 02:18:05 +02:00
twinaphex 79db0c2ab5 Start using video_driver_get_size in video drivers 2015-05-20 00:45:42 +02:00
twinaphex 375c49b6c8 Move is_menu out of runloop struct and create get/set functions in menu_driver.c
and make the underlying variable static to make it thread-safe
2015-05-19 20:11:57 +02:00
Higor Eurípedes dfd6d464a8 (gl) Add check in gl_overlay_vertex_geom() 2015-05-19 13:51:59 -03:00
Higor Eurípedes dc5460effd (gl_raster_font) Fix invalid read when pushing vertices
Calling both glsl shader->set_coords() or gl_coord_array_add() resulted
in an invalid read when memcpy()ing coords->lut_tex_coord.
2015-05-19 13:45:22 -03:00
Higor Eurípedes c5940b32b6 (gl) Remove context switch calls from set_osd_msg
It's not needed because this function is always called from the
frontend/menu context. The video driver handles SET_MESSAGE
environment call in the frame() function (msg argument).
2015-05-12 09:36:00 -03:00
twinaphex 7c84232b9f (GL) Uncomment context_hw_bind_render calls around set_osd_msg again 2015-05-11 22:30:44 +02:00
twinaphex 4d7c2a642d (GL) Cleanups 2015-05-11 00:20:06 +02:00
Higor Eurípedes e0dccab5fc (gl) Dont switch to another context in gl_set_osd_msg() 2015-05-10 16:18:09 -03:00
twinaphex 73d5e8a41b (PS3) Build fix and fix warnings 2015-05-09 17:53:03 +02:00
twinaphex 945d2851ba Pass frame_count variable to gl_frame_fbo 2015-05-09 17:41:53 +02:00
Twinaphex f08db710ac Kill unused variables 2015-05-09 16:06:05 +02:00
twinaphex 9b9e65abf3 Start using video_driver_get_frame_count 2015-05-09 16:04:12 +02:00
twinaphex ae408a1d41 Create video_poke get_frame_count function 2015-05-09 15:52:06 +02:00
twinaphex 4ecfe639b3 Create local frame_count variables again in video_drivers 2015-05-09 15:41:10 +02:00
twinaphex 498caabfc7 (GL) Buildfix 2015-05-04 10:03:33 +02:00
twinaphex 5d58d290af (GL) Improve VideoCore/Raspberry Pi hack 2015-05-04 10:00:32 +02:00
twinaphex e4cb891ae7 (GL) Pass context identifier to resolve_extensions 2015-05-04 09:37:26 +02:00
Higor Eurípedes 5bfd910cd1 (gl) Fix font rendering when video_font_enable=false 2015-05-02 22:41:59 -03:00
twinaphex 80c5059d43 Revert "(Video) Call gfx_ctx_free from common function - uninit_video_input"
This reverts commit aac304410b.
2015-05-02 22:53:27 +02:00
twinaphex aac304410b (Video) Call gfx_ctx_free from common function - uninit_video_input 2015-05-02 05:52:34 +02:00
twinaphex 0ba4e81e63 (VG) Build fixes 2015-04-26 23:19:19 +02:00
twinaphex a9dee4877e Create set_viewport wrapper function - threaded video mode's
set_viewport function does not work yet
2015-04-26 19:46:59 +02:00
twinaphex 1860f06926 (VG) Cleanups 2015-04-26 06:04:16 +02:00
twinaphex 3f3df59758 (GX) Buildfix 2015-04-26 05:48:45 +02:00
twinaphex b6fbf5a335 (Menu) Start getting rid of gl->win_width/gl->win_height and start
creating global->video_data.width and global->video_data.height
which should be used instead in menu drivers
2015-04-26 05:21:43 +02:00
twinaphex c22535b7e1 Reduce HAVE_FBO ifdefs 2015-04-25 02:35:06 +02:00
twinaphex 44a8b8bcd3 Move font_handle and font_driver ot the driver struct 2015-04-25 00:32:01 +02:00
twinaphex bd63de9b3a Replace gl_font_init_first and d3d_font_init_first with common function 2015-04-21 17:33:00 +02:00
twinaphex 8c528bb79a Rename apple_bind_game_view_fbo to cocoagl_bind_game_view_fbo 2015-04-19 17:42:04 +02:00
aliaspider 2076846a5c (CTR/3DS) disable v-sync blocking after a missed vblank-start event.
will prevent cores running under 60fps from slowing down even more.
2015-04-17 19:45:07 +01:00
twinaphex 27661c8087 Refactor some HAVE_X11/HAVE_EGL code 2015-04-16 22:39:28 +02:00
twinaphex 6bf30bb714 (PS3) Buildfixes 2015-04-14 21:58:39 +02:00
twinaphex 0818b178f9 Rename rarch_main_command to event_command 2015-04-13 11:26:02 +02:00
Twinaphex de2eb5f972 Rename RARCH_CMD_* to EVENT_CMD_* 2015-04-13 10:29:15 +02:00
Twinaphex 56a348e9bd Merge pull request #1624 from aliaspider/master
(3DS) video driver: performance improvements.
2015-04-13 02:52:32 +02:00
aliaspider e754c328b0 (3DS) video driver: performance improvements. 2015-04-13 01:50:00 +01:00
twinaphex 9a3ba16a36 (GL) Cleanup 2015-04-12 22:01:48 +02:00
twinaphex 7fbbac544e Some C89 build fixes 2015-04-12 19:29:38 +02:00
twinaphex be96b95dda Style nits 2015-04-11 08:45:55 +02:00
twinaphex 54b10d8eca (gfx/drivers) Style nits 2015-04-11 08:39:37 +02:00
twinaphex 4f43e4b363 Go through gfx_ctx_get_proc_address 2015-04-10 09:24:10 +02:00
twinaphex ffc5ba0980 Make gfx_ctx_get_ptr static 2015-04-10 09:15:25 +02:00
Twinaphex ced227c214 (gl.c) Cleanups 2015-04-10 09:12:32 +02:00
twinaphex f65f56fdf4 Go through gfx_ctx_get_video_output wrapper functions 2015-04-10 09:11:17 +02:00
twinaphex 234baf09bd Go through gfx_ctx_bind_hw_render 2015-04-10 09:07:53 +02:00
twinaphex 0ef148f460 Go through gfx_ctx_set_video_mode 2015-04-10 09:05:07 +02:00
twinaphex 8082f17e2e Rename egl image buffer functions 2015-04-10 09:02:24 +02:00
twinaphex 0fc92790b3 Go through gfx_ctx_input_driver 2015-04-10 08:53:45 +02:00
twinaphex fe69dc2768 Use gfx_ctx_show_mouse 2015-04-10 08:49:01 +02:00
twinaphex 4cb8074bf5 Create more gfx_ctx wrapper functions and use them 2015-04-10 08:33:07 +02:00
twinaphex 187ab80f71 Go through more gfx_ctx wrapper functions 2015-04-10 08:26:43 +02:00
twinaphex 93cbdebd37 Create gfx_ctx_get_video_size 2015-04-10 07:12:15 +02:00
twinaphex 901662caad (vg.c) Use gfx_ctx_translate_aspect 2015-04-10 06:52:51 +02:00
twinaphex d16b22fa80 (vg.c) Start going through gfx_ctx wrapper functions 2015-04-10 06:51:00 +02:00
twinaphex 6ff8d368e6 (gl.c) Cleanup 2015-04-10 06:29:27 +02:00
twinaphex a4f234e26e (GL) Cleanup gl_read_viewport 2015-04-10 06:25:25 +02:00
twinaphex 270f10ae04 (gl.c) Cleanup gl_init 2015-04-10 06:17:04 +02:00
twinaphex 37a5a7e653 Create gfx_ctx_suppress_screensaver 2015-04-10 06:13:20 +02:00
twinaphex 7671f3e035 Create gfx_ctx_check_window 2015-04-10 06:10:05 +02:00
twinaphex 133d7b7dd2 Wrap more gfx_ctx functions 2015-04-10 05:47:36 +02:00
twinaphex c0d58ce467 Take out win32_dwm_common.h header includes 2015-04-09 23:00:08 +02:00
twinaphex 18801c8449 Move gfx_set_dwm call to platform_win32.c 2015-04-09 22:58:57 +02:00
twinaphex 0df3f13fc9 Revert "Create wrapper gfx_ctx_check_window"
This reverts commit 4d3b187231.
2015-04-09 22:38:11 +02:00
twinaphex 4d3b187231 Create wrapper gfx_ctx_check_window 2015-04-09 22:37:14 +02:00
twinaphex 82124d6181 Create some more gfx_ctx wrapper functions 2015-04-09 21:58:58 +02:00
twinaphex 4e24111f42 (Graphics context) Create gfx_ctx_translate_aspect 2015-04-09 21:48:20 +02:00
twinaphex 8616a9bf28 (VG) Go through gfx_ctx_get_ptr 2015-04-09 18:46:24 +02:00
twinaphex 5d60938560 (GL) Go through gfx_ctx_get_ptr 2015-04-09 18:30:30 +02:00
Twinaphex 73bfdfccdb (GL) remove unused variables 2015-04-09 18:20:56 +02:00
twinaphex 849d86db0f (GL) Start going through gfx_ctx_get_ptr 2015-04-09 18:17:52 +02:00
twinaphex 45e87c06e2 (Driver) Create video_context 2015-04-09 18:07:58 +02:00
twinaphex 5e8a78bb25 Move x11_common.c to gfx/common 2015-04-09 05:02:57 +02:00
twinaphex 16b7b454a9 Move gl_common.c to gfx/drivers 2015-04-09 04:57:17 +02:00
twinaphex 8b2c8bae19 (Xvideo) Style nits 2015-04-09 04:15:37 +02:00
aliaspider a7c63f973b (3DS) update video driver:
use a gemotry shader to simulate sprite primitives.
move gpu state commands to the initial display list.
2015-04-08 18:59:41 +01:00
twinaphex 512f6aa1b8 (3DS) use retro_inline.h 2015-04-05 22:50:44 +02:00
aliaspider e06a7d5f7e (3DS) set the content frame to fullscreen for now, until aspect ratio
settings are implemented.
2015-04-05 21:06:24 +01:00
aliaspider bac17ec84a (3DS) add missing inline directive. 2015-04-05 20:48:23 +01:00
aliaspider 6e364e5e48 (3DS) update copyright. 2015-04-05 20:44:50 +01:00
aliaspider 81933fc96d (3DS) ctr_gu.h was missing. 2015-04-05 20:43:15 +01:00
aliaspider fe923dff98 (3DS) video driver rewrite. 2015-04-05 20:40:35 +01:00
radius 5e6cf7d74d windows build fixes 2015-04-04 13:56:26 -05:00
twinaphex a8f9d73a97 (Win32) Replace wgl_shader_dlg.h header includes 2015-04-04 20:45:15 +02:00
twinaphex 36b054506d Move window manager code to gfx/drivers_wm 2015-04-04 20:30:44 +02:00
Twinaphex 632dfe3a82 Merge pull request #1578 from lioncash/printf
Fix some printf format specifiers
2015-04-03 22:30:04 +02:00
Lioncash b68048e6db Fix some printf format specifiers
Gets rid of warnings on higher warning levels
2015-04-03 15:09:17 -04:00
twinaphex 532d112ff8 (Font) Combine font_d3d_driver and font_gl_driver 2015-04-03 20:36:19 +02:00
twinaphex 951547eb70 (GL) Namespace cleanups 2015-04-03 04:25:46 +02:00
twinaphex b89f97065a (sdl_gfx) Cleanups 2015-04-03 04:20:50 +02:00
twinaphex 6ce142305d (sunxi_gfx.c) Cleanups 2015-04-03 04:17:44 +02:00
twinaphex 352bd086b0 (omap_gfx) Cleanups 2015-04-03 04:07:04 +02:00
twinaphex a039a64314 (exynos/dispmanx) Namespace / style nits 2015-04-03 03:53:01 +02:00
Lioncash 5102339e84 ctr_gfx: Fix a missing printf formatting specifier 2015-04-02 12:41:07 -04:00
aliaspider d842697863 (3DS) can display loaded content.
add an fps counter.
2015-04-02 04:00:26 +01:00
aliaspider 948e637e22 (3DS/CTR) shutdown hack not needed anymore. 2015-04-02 02:28:56 +01:00
aliaspider 27bd10b21d implement a very basic input driver, will need to be implemented
correctly later.
2015-04-02 02:19:21 +01:00
twinaphex 5612545b25 (CTR/3DS) Update copyright headers 2015-04-02 01:43:28 +02:00
aliaspider 2045cee432 preliminary 3DS port. 2015-04-01 22:14:13 +01:00
twinaphex 2c555082ee D3D and GL now use the same font driver interface 2015-03-30 00:55:39 +02:00
twinaphex 3da7197538 (font_driver) Get rid of warnings 2015-03-28 20:51:03 +01:00
Higor Eurípedes 8b7bbc7975 (gl_font_renderer_t) Implement swappable blocks and remove end_block pointer 2015-03-25 13:04:53 -03:00
vanfanel b39867f5db SUNXI driver: removed unused variables. 2015-03-25 15:30:29 +00:00
vanfanel 2eb3fdba44 Removed unneeded header includes in the Dispmanx driver. 2015-03-24 21:20:13 +01:00
vanfanel f4dd04c828 More optimizations. RGUI Menu working. 2015-03-24 20:13:09 +00:00
twinaphex 436536398a (GL) Conditional no longer needed - check is done outside in
video_driver_frame
2015-03-24 13:37:58 +01:00