Commit Graph

2008 Commits

Author SHA1 Message Date
Themaister
4b97de0c9e Replace filter cruft with new stuff. 2014-04-15 00:03:55 +02:00
Themaister
cbc6775496 Some more filter stuff ... 2014-04-14 23:46:47 +02:00
Themaister
f72445798b Flesh out filter stuff a bit more. 2014-04-14 23:24:10 +02:00
Themaister
5cb3438389 Begin implementation of softfilter API. 2014-04-14 22:56:15 +02:00
Themaister
f2c78c36e3 [Android] Add support for GLES3 HW render. 2014-04-14 13:17:05 +02:00
Themaister
2e3ca36010 Allow toggling monitor index in RGUI. 2014-04-06 15:41:53 +02:00
Themaister
0ae933ea8b Select best KMS mode depending on refresh rate.
Try to match as closely as possible.
2014-04-06 15:29:59 +02:00
Themaister
72c3177715 Honor fullscreen_x/fullscreen_y in KMS/EGL.
Try to find optimal mode.
2014-04-06 15:20:31 +02:00
Themaister
36575fe407 Add multi-monitor support to KMS/DRM. 2014-04-06 15:10:39 +02:00
Themaister
99bc686266 Log available KMS/DRM modes. 2014-04-05 22:29:20 +02:00
Themaister
f804adae21 Fixup big resource leaks in KMS/DRM. 2014-04-05 22:11:19 +02:00
Floréal Toumikian
c1014ee305 Moved dir_list_free 2014-04-05 19:59:31 +02:00
Floréal Toumikian
a107678f0d Fixed broken build 2014-04-05 19:51:28 +02:00
Floréal Toumikian
d663f7fc5d romoved glob, used file_list instead 2014-04-05 19:32:51 +02:00
Floréal Toumikian
8fce5f03e9 Added gpu lookup in DRM EGL context 2014-04-05 16:02:28 +02:00
twinaphex
68593e39ea (D3D9) Replace menu_iterate_xui code 2014-04-01 04:49:32 +02:00
Twinaphex
456a9f4245 (D3D) Don't add Direct3D to window title 2014-03-16 14:50:09 +01:00
Twinaphex
ba4116e313 (D3D) TODO - quick hack to get D3D driver to at least work for games -
WM_DESTROY needs to be properly reimplemented
2014-03-16 14:36:55 +01:00
Adam Di Carlo
4aff572ed7 vg methods require the vg be passed as first object; allows this file to compile on Debian Wheezy amd64 2014-03-15 14:22:26 -04:00
Themaister
79d0cb11af Fix compile issue in VC context. 2014-03-15 16:04:23 +01:00
Themaister
d941f70dff Should fix build on Pi. 2014-03-15 14:16:29 +01:00
twinaphex
c52c8cd5b5 (Android) Bump up versioncode
(VideoCore EGL) Fix build
2014-03-13 11:01:46 +01:00
twinaphex
7cdc23505c (Apple) Build fix 2014-03-10 06:00:06 +01:00
twinaphex
247dc03124 (d3d_ctx.cpp) Use local data pointer instead of driver.video_data
where appropriate
2014-03-09 18:54:02 +01:00
twinaphex
d1df068583 (XDK) Build fix 2014-03-09 18:51:35 +01:00
Themaister
6b470442e6 Fixup Win32 build.
D3D stubbed out until it's fixed.
2014-03-09 17:15:10 +01:00
Themaister
d3c0431a3b Update more context backends ... 2014-03-09 17:11:06 +01:00
Themaister
d0302c9800 Begin adding opaque interface to gfx_context. 2014-03-09 16:50:18 +01:00
Themaister
6a45de307d Build fix MinGW. 2014-03-09 15:49:20 +01:00
twinaphex
4da1d1f8a3 (D3D CTX) implement gfx_ctx_d3d_destroy for Xbox 2014-03-08 05:21:57 +01:00
twinaphex
8254e127ec Rename d3d9_p.cpp to gfx/context/d3d_ctx.c 2014-03-08 05:18:05 +01:00
twinaphex
a95290b94a (D3D Move more code over for Xbox 2014-03-08 04:56:27 +01:00
twinaphex
05e62a133f (XDK) Remove xdk_ctx.c 2014-03-08 04:19:10 +01:00
twinaphex
38c04f9b0c (XDK) Use same context driver as PC now 2014-03-08 04:13:20 +01:00
twinaphex
7599caac81 (D3D) Move code around 2014-03-08 04:08:18 +01:00
twinaphex
dabfafc7cc (D3D) Move stuff around 2014-03-08 04:03:12 +01:00
twinaphex
f84e59568c (D3D) Remove some header includes 2014-03-08 03:36:10 +01:00
twinaphex
c512fccc18 (XDK) Build fix 2014-03-08 00:54:33 +01:00
twinaphex
c5fd281e1c (XDK) Use similar-named context driver as PC D3D 2014-03-07 22:49:44 +01:00
twinaphex
ff65d6a58c (D3D) Insert more XDK code 2014-03-07 22:26:47 +01:00
twinaphex
856f7a2e2c (D3D) Build fix 2014-03-07 21:58:21 +01:00
twinaphex
8714939ab7 (D3D) Start implementing Xbox code in regular D3D driver 2014-03-07 21:55:18 +01:00
twinaphex
1af941a6ee (D3D) Some changes 2014-03-07 21:22:59 +01:00
twinaphex
2708bef175 (D3D) Add XDK ifdefs in d3d9_pc.cpp 2014-03-07 21:14:56 +01:00
twinaphex
f512ba76d1 (XDK) Rename xdk_d3d_video_t to d3d_video_t 2014-03-07 20:17:25 +01:00
twinaphex
fd76a28a32 (D3D) Refactor D3DVideo class to d3d_video_t - should be very
similar to XDK D3D driver now
2014-03-07 19:34:17 +01:00
twinaphex
85bfecf1e9 (D3D) Cleanup render_chain.hpp 2014-03-07 19:17:59 +01:00
twinaphex
e639c6042e (D3D Refactor render_chain.cpp - shouldn't be a class 2014-03-07 19:13:20 +01:00
twinaphex
7f5e2c1631 (360 XDK) Don't reference driver.video_data from within
xdk3360_fonts.cpp
2014-03-07 06:46:11 +01:00
twinaphex
82c7e8f422 (XDK D3D) Build fix 2014-03-07 05:56:23 +01:00
twinaphex
39c1ec4672 Pass data param to more shader functions 2014-03-07 05:51:56 +01:00
twinaphex
ab79407dc6 (XDK 360 fonts) Start replacing driver.video_data with local data argument 2014-03-07 05:37:20 +01:00
twinaphex
091ae18870 (GL) Fixup params to shader->init 2014-03-07 05:32:17 +01:00
twinaphex
ea88399281 (XDK D3D) Refactor initing code completely - make it more inline
with PC D3D driver
2014-03-07 05:31:24 +01:00
twinaphex
c03c980c1e (XDK D3D) Create set_mvp 2014-03-06 18:29:54 +01:00
twinaphex
407cced43c (XDK D3D) Move g_extern.frame_count incrementin to swap_buffers 2014-03-05 22:24:39 +01:00
twinaphex
fb48a9e356 (XDK D3D) refactors 2014-03-05 22:10:36 +01:00
twinaphex
f0ff3b4ae7 (XDK D3D) Rename win_width/win_height to screen_width/screen_height 2014-03-05 06:25:39 +01:00
twinaphex
4cd603197b (XDK D3D) Refactor LPDIRECT3D member to g_pD3D 2014-03-05 06:11:39 +01:00
twinaphex
1e37515e2f (XDK D3D) Rename d3d_render_device member to dev 2014-03-05 06:05:48 +01:00
twinaphex
8a670dd2c8 (PC D3D9) Go through d3dr pointer 2014-03-05 05:25:27 +01:00
twinaphex
61893a82e8 (D3D9) Move more Cg functions to render_chain_cg.cg 2014-03-05 01:54:09 +01:00
Tobias Jakobi
49bc4f226f video_lima: increase alignment of allocated memory to 128-bit
This works better for the NEON asm in limare.
2014-03-04 20:26:53 +01:00
Tobias Jakobi
8759b67f66 video_lima: align width/height of font tex to 16 (Mali block size) 2014-03-04 20:26:52 +01:00
twinaphex
71854439bb (D3D9) Move d3d_init_shader/d3d_deinit_shader to gfx/d3d9/render_chain_cg.h 2014-03-04 18:49:01 +01:00
twinaphex
dfe33b5ade (Cg) Move bind_tracker and init_fvf to render_chain_cg.h 2014-03-04 18:42:22 +01:00
twinaphex
35d6ec7a1d (D3D9) Move more Cg code to render_chain_cg.h 2014-03-04 18:31:38 +01:00
twinaphex
e9fb97254b (D3D9) Start isolating all Cg code and move it to render_chain_cg.h 2014-03-04 18:24:47 +01:00
twinaphex
16af303c9e (D3D9) Refactor render_chain.cpp - isolate Cg code 2014-03-04 18:19:47 +01:00
twinaphex
68a6da85b7 (Cg) Remove useless forward declaration 2014-03-04 17:13:50 +01:00
Themaister
74735e2b4d Add some more error logging in X/EGL. 2014-03-03 23:00:37 +01:00
twinaphex
3f5e3c191e (XDK) Build fixes 2014-03-02 02:18:37 +01:00
Themaister
28d1e77a36 Fix GPU screenshots with GL + threaded driver. 2014-02-26 20:42:22 +01:00
twinaphex
fcf30143b4 (PS3) Change HAVE_RGL to HAVE_GCMGL 2014-02-25 22:01:46 +01:00
twinaphex
fd7f4d45cd Move image files to gfx/image/ 2014-02-25 21:24:15 +01:00
Themaister
107c07c05d Reinit driver on composition change. 2014-02-25 19:14:22 +01:00
Tobias Jakobi
20067ed087 video_omap: plug memory leak 2014-02-24 21:12:12 +01:00
Tobias Jakobi
117a1ff64b video_lima: plug potential memory leak 2014-02-24 21:03:35 +01:00
twinaphex
f5321d69c8 (PSGL) Remove psglu.h header include 2014-02-24 17:30:08 +01:00
twinaphex
b12274f704 (PS3) Get rid of warning: Variable is used before its value is set 2014-02-23 01:56:33 +01:00
Lioncash
fb9959d338 Fix wrong usage of free in d3d9/d3d.cpp. Should be delete. 2014-02-22 17:19:47 -05:00
Toad King
ea5ecd507d [GX] fix image converters to avoid memory corruption, fixes crash on some overlays 2014-02-20 23:50:45 -05:00
Toad King
041ec45132 Merge branch 'gx-overlays'
Conflicts:
	Makefile.wii
	gx/gx_video.c
2014-02-20 19:46:43 -05:00
Toad King
02fd6dffbd [GX] overlays appear, still some bugs left 2014-02-20 17:58:06 -05:00
Toad King
e09b7fb60c build fix 2014-02-19 17:52:47 -05:00
twinaphex
71b6485bb5 (PSP) Fix warnings 2014-02-19 17:47:59 +01:00
twinaphex
603484a1da (Thread wrapper) Fix unused variable i warning 2014-02-19 16:30:28 +01:00
Toad King
518b53e21c convert images on texture_image_load for gekko 2014-02-18 18:20:23 -05:00
twinaphex
a788009e7c How nice - geom->base_width and geom->base_height are const, so
we have to put them in local copies first
2014-02-13 15:12:31 +01:00
twinaphex
535f130891 Prevent division by zero in gfx_set_viewport 2014-02-13 15:10:01 +01:00
Hans-Kristian Arntzen
2ab94ad8d1 [Android]: Use ALPHA_SIZE 8.
Avoids weird 24-bit surfaces ...
2014-02-13 12:04:08 +01:00
twinaphex
94d70b6aba (PSP) Hack - Get around FPU exception - division by zero 2014-02-13 11:38:41 +01:00
Hans-Kristian Arntzen
6a6f56a82e Do not reply on CMD_NONE.
Avoids potential deadlock.
2014-02-13 11:20:18 +01:00
Hans-Kristian Arntzen
b1a3b94594 Fix command-line for glgen. 2014-02-12 19:05:29 +01:00
Themaister
bf1a95459c Remove weird backslash. 2014-02-12 18:55:40 +01:00
Themaister
c85b5b9b27 Add glsym README. 2014-02-12 18:54:57 +01:00
twinaphex
7a67e05a66 (glsym_gl.h) Update GLuint64EXT in glsym_gl.h too (BTW - where
is the README explaining how to generate files with glgen.py?)
2014-02-12 18:29:03 +01:00
twinaphex
620bf49081 (OSX) Add GLuint64EXT for OSX version lower than 10.7 (Lion) 2014-02-12 18:21:35 +01:00
Twinaphex
ad68ce4c91 Merge pull request #545 from libretro/glgen-update
Update glgen_gl.c/h.
2014-02-12 17:59:01 +01:00
Themaister
ef54422379 Avoid temporary garbage data in alpha mod. 2014-02-12 15:53:04 +01:00
Themaister
833259de93 Greatly improve performance with normalized overlays and threaded video.
SET_ALPHA_MOD would previously block on frame completion which only made
sense for non-normalized overlays.

This should also hopefully fix the ANR hang on Android.
2014-02-12 15:40:54 +01:00
Themaister
150ee8d8c2 Update glgen_gl.c/h. 2014-02-11 20:53:46 +01:00
twinaphex
b370d3f048 Stub function of null_gfx_restart when HAVE_MENU is defined 2014-02-11 17:10:13 +01:00
twinaphex
d4f9c211ee (PSP) Build fixes 2014-02-11 16:10:40 +01:00
twinaphex
de0d0626f6 Include boolean.h instead of stdbool.h 2014-02-11 07:49:15 +01:00
twinaphex
c42a00a39f (OSX PPC) Change anonymous unions, define GLint64/GLuint64/GLsync
for Leopard and Snow Leopard, other changes..
2014-02-11 16:07:00 +11:00
Tobias Jakobi
f3f50daeb4 video_lima: use posix_memalign to request aligned memory
aligned_alloc is deprecated
2014-02-10 14:58:55 +01:00
Tobias Jakobi
3005501184 video_lima: fix some warnings 2014-02-10 14:58:55 +01:00
Tobias Jakobi
605d4f3954 video_lima: slight reduction of font texture size 2014-02-10 14:58:54 +01:00
Tobias Jakobi
72009fe3d7 video_lima: use general align function
introduce in preparation to texture upload optimization
2014-02-10 14:58:54 +01:00
OV2
43b209a5c0 D3D9: use new during init so that constructors are run 2014-02-08 19:56:02 +01:00
Themaister
94a0cef1d4 Fix libretro GL core screenshots. 2014-02-06 23:37:06 +01:00
Themaister
8120198ed8 Make C++ compiler happy. 2014-02-06 22:52:48 +01:00
Themaister
032ba14d3b Properly implement GPU screenshot for GLES.
Have to use GL_RGBA/GL_UNSIGNED_BYTE as well as reading from back buffer
only.
2014-02-06 21:35:57 +01:00
Higor Eurípedes
b719c98db6 (griffin.c) Fix build when freetype2 support is enabled
This commit fixes build issues for frontends that wish to use freetype2
or that do not want to use the built-in bitmap font:

* Having HAVE_FREETYPE without DONT_HAVE_BITMAPFONT makes griffin.c
  include both freetype.c and bitmapfont.c resulting in a redefinition
  of 'struct font_renderer' (freetype.c:25 and bitmapfont.c:24).

* Having both HAVE_FREETYPE and DONT_HAVE_BITMAPFONT resulted in linkage
  problems because griffin.c does not include fonts.c in this case and
  thus font_renderer_create_default() implementation is missing. If
  fonts.c is included, the linker complains about undefined reference to
  bitmap_font_renderer in fonts.c:27.
2014-02-05 12:30:55 -03:00
Tobias Jakobi
18e37b2d47 video_lima: set wrap mode to clamp for all textures we use 2014-01-28 03:02:04 +01:00
Tobias Jakobi
6ab202f25f video_lima: whitespace fixes 2014-01-27 23:05:45 +01:00
Tobias Jakobi
9d1090b194 video_lima: remove unused and redundant variables 2014-01-27 23:03:08 +01:00
Tobias Jakobi
8f41e80c61 video_lima: align temp buffer 2014-01-26 04:43:01 +01:00
Tobias Jakobi
4b05426bbe video_lima: add font rendering by using the temp buffer 2014-01-26 04:43:01 +01:00
Tobias Jakobi
a338d99781 video_lima: misc fixes 2014-01-26 04:43:00 +01:00
Tobias Jakobi
55fc57b846 video_lima: fix some swizzling in the fragment shader
Thanks to AreaScout for testing this!
2014-01-26 04:43:00 +01:00
Tobias Jakobi
9226c3c783 video_lima: adjust aspect ratio depending on frame dimensions
With this the emulator framebuffer is no longer stretched to the entire
screen. However it's still not entirely correct. For example the aspect
ratio value provided by the frontend is not used yet.
Also I noticed this behaviour: When using the game "Secret of Mana 2"
(unofficial english translation) on the snes9x-next core, the game
normally uses a framebuffer of dimension 256x224. But when rendering
text windows, it increases resolution to 512x224. With the current
behaviour this alters aspect ratio and let's the image "explode"
when text boxes are displayed, only to "implode" again when they close.
This should not happen! (Needs further investigation...)
2014-01-26 04:43:00 +01:00
Tobias Jakobi
7cdb08b804 Add lima video driver
Documentation is provided in README-lima.
2014-01-26 04:43:00 +01:00
Themaister
0b462054ea De-hardcode input drivers in KMS-like drivers. 2014-01-24 10:23:48 +01:00
pinumbernumber
09651cbe21 Hopefully improved detection of third-party dual xinput/dinput pads 2014-01-23 21:57:19 +00:00
Themaister
6c5d481f2d Fix MinGW compile. 2014-01-22 16:39:39 +01:00
Themaister
8c9e1a5f5c Fix some unused function warnings.
Clang 3.4 is more aggressive on this.
2014-01-22 16:39:39 +01:00
twinaphex
b480009604 (D3D9) Remove obsolete function d3d_font_msg now 2014-01-18 21:53:40 +01:00
twinaphex
7cbfb14791 (D3D9 PC) Go through font context driver now 2014-01-18 21:51:30 +01:00
twinaphex
13620ab16d (D3D) Split up D3D font code from D3D PC driver into separate font context file 2014-01-18 21:38:21 +01:00
twinaphex
5d34d72ed2 (XDK 360) Clean up xdk360_fonts 2014-01-18 21:32:46 +01:00
twinaphex
7c1f24c861 (D3D) set_resize function bound to D3D context driver 2014-01-18 21:13:08 +01:00
twinaphex
544df55017 (D3D) check_window - check if d3d_quit has been set to true, and if so,
set quit pointer value to true
2014-01-18 21:07:34 +01:00
twinaphex
280b9d5406 (D3D9) Move more code to d3d9_pc context driver 2014-01-18 20:49:57 +01:00
twinaphex
ab9d4440db (D3D) Create graphics context driver for D3D and move
state code over to it
2014-01-18 18:43:40 +01:00
twinaphex
ff3a157a9d (D3D) Ifdefs for HAVE_CG (and miscellaneous) 2014-01-15 19:00:46 +01:00
Themaister
c4978651fa Properly replace template.
Avoid having to assume a magic variable is present in scope.
2014-01-15 17:24:24 +01:00
twinaphex
73b23f7002 (MSVC) Fix warnings 2014-01-15 17:05:08 +01:00
twinaphex
185dc3731f (D3D) Add HAVE_CG/_XBOX ifdefs 2014-01-15 14:14:37 +01:00
twinaphex
c966629e1b (D3D9) Fixup HAVE_PYTHON ifdef 2014-01-11 15:47:11 +01:00
Themaister
0447c04957 Remove obsolete rpng comment.
It does decode all the basic formats, interleaving and stuff.
2014-01-11 12:24:54 +01:00
Themaister
f3eb9dfafe Make RPNG compilable outside RetroArch without source hacking. 2014-01-11 12:22:51 +01:00
twinaphex
a2d713b3cb Add rzlib to include dirs to avoid ugly ifdef for WANT_MINIZ 2014-01-10 19:46:31 +01:00
twinaphex
b34a21be83 (D3D9) quit variable must be static 2014-01-09 22:25:50 +01:00
twinaphex
5752bb1b9c (D3D) Move implementation-specific functions to d3d9_pc.cpp 2014-01-09 21:27:53 +01:00
twinaphex
7cd149c3c6 (D3D) Build fix 2014-01-09 20:06:39 +01:00
twinaphex
51eb1d9e52 (D3D) Compatibility with Xbox 1 - WIP 2014-01-09 20:04:18 +01:00
twinaphex
feb11c525c (D3D) Add some more ifdefs for portability purposes 2014-01-09 19:52:01 +01:00
twinaphex
c32fc07b3f (D3D) Turned D3DVideo class into struct 2014-01-09 19:43:45 +01:00