Commit Graph

2225 Commits

Author SHA1 Message Date
Themaister
9d8654cfe2 Nits. 2014-05-11 19:02:01 +02:00
TroggleMonkey
48331e822a Give sRGB FBO's priority over float FBO's:
Both pass through linear RGB similarly, but sRGB should be faster.
If both are enabled, the .cgp author won't need float32-only features like
packing multiple values.  This also makes testing/usage priority the same.
Add sRGB FBO logging to mirror float FBO logging.
Make LUT mipmapping consistent with FBO's (ignore it for magnification.)
2014-05-11 11:53:09 -04:00
Themaister
a0da1f040f Check GLES with GL_FRAMEBUFFER_SRGB. 2014-05-11 14:57:35 +02:00
Themaister
bc8bb13050 Add mipmapping and sRGB FBO support. 2014-05-11 13:39:04 +02:00
Themaister
91a0073f7d Image backends don't have state.
Remove unneeded prototypes.
2014-05-11 11:22:09 +02:00
twinaphex
88d9aae9a2 (RARCH_CONSOLE) Build fix 2014-05-10 20:40:11 +02:00
Twinaphex
9cce8fa07b (MSVC 2010) Build fix 2014-05-10 11:35:51 -07:00
twinaphex
b2b5c6daec (Image) Put image functions through abstract interface
(Image) Add image_driver to retroarch.cfg to specify image driver to use
(Menu)  Add Image Driver to Drivers section
2014-05-10 20:26:58 +02:00
twinaphex
05a3b4e4b7 (RARCH_CONSOLE) Fix redefinition warnings/errors to do with
softfilters
2014-05-10 03:03:01 +02:00
twinaphex
e037e2555e (SoftFilters) Reimplement all filters - take out softfilter_prototypes
header file
2014-05-10 02:12:00 +02:00
twinaphex
0d2752a276 Add driver.menu-ctx->frame triggering inside gl_frame function -
Lakka GL iteration should be invoked here instead of the ifdef.

Currently delta animation goes way too slow if 'frame' function of
lakka driver is hooked up properly - hence the #LAKKA hack is still
in place.
2014-05-09 22:44:40 +02:00
Themaister
ef2037abe8 Remove float FBO for GLES.
The extension doesn't work as a rendertarget anyways.
2014-05-09 16:38:56 +02:00
Twinaphex
b136ce5004 Merge pull request #675 from lakkatv/lakka-integration
Lakka integration
2014-05-09 16:31:54 +02:00
twinaphex
4b543e83fb (2xBR) Fix warning on PS3 2014-05-09 16:28:43 +02:00
Jean-André Santoni
22a5e07ead Merge branch 'master' of https://github.com/libretro/RetroArch 2014-05-09 16:24:36 +02:00
twinaphex
9773d001a4 (SoftFilters) Update 2xbr/2xsai/blargg_ntsc_snes_composite/blargg_ntsc_snes_rgb 2014-05-09 16:18:08 +02:00
Twinaphex
4d46c36917 (360) Build fix 2014-05-08 20:56:55 -07:00
twinaphex
c35c1fdb74 (shader_common.c) Style nits 2014-05-09 04:54:54 +02:00
twinaphex
d7f50bdeac (PS3) Missed semicolon 2014-05-08 22:40:00 +02:00
twinaphex
d7a273feb0 (PSGL) Force mipmap to false for now for PSGL 2014-05-08 22:27:58 +02:00
twinaphex
7bba107415 (shader_common.c) Some build fixes for PS3 2014-05-08 21:50:49 +02:00
twinaphex
853179a2fb Add inclusion of gfx/shader_common.c to other Makefiles 2014-05-08 21:49:18 +02:00
TroggleMonkey
61ba7afc1c Merge branch 'improve_texturing':
OpenGL mipmap support for LUT textures is ready for upstream inclusion.
2014-05-08 15:12:28 -04:00
TroggleMonkey
c15d188ecf Refactored duplicate Cg/GLSL LUT texture loading code into shader_common.c.
Fixed a bug where "Apply Shader Changes" in RGUI saved/set the wrong
texture filter for LUT textures.
Unofficially extended Cg shader spec with an LUT mipmap option:
To mipmap LUT "foo," add 'foo_mipmap = "true"' to your .cgp/.glslp file.
Mipmapping is currently implemented for the OpenGL driver only.
2014-05-08 13:41:04 -04:00
twinaphex
41e526a163 Split up rglgen header includes to separate header file 2014-05-08 03:30:43 +02:00
Jean-André Santoni
7dda9f0b00 Lakka menu display and icons 2014-05-08 01:12:51 +07:00
Alcaro
edff8b2c10 Fix rgb565 mode on this thing. 2014-05-03 18:17:35 +02:00
Themaister
583514ae95 Add support for GLES 3.1+. 2014-05-03 15:21:14 +02:00
Themaister
f6a578ce4e Fix issues with nVidia EGL implementation. 2014-05-03 14:48:12 +02:00
twinaphex
cb53d65fc3 Compile with HAVE_BUILTIN_FILTERS for Android - and some C90 build
fixes for filters. Note/FIXME: We need to get rid of the complex.h
dependency in the equalizer plugin
2014-05-03 04:59:35 +02:00
twinaphex
3b6f408a41 (SoftFilters) Add Phosphor2x 2014-05-03 02:26:04 +02:00
twinaphex
08965cfa0d Change HAVE_FFMPEG ifdefs into HAVE_RECORD - recording will get
a proper interface soon so there can be multiple implementations
instead of just ffmpeg
2014-05-03 00:21:07 +02:00
twinaphex
d56f1e0104 (SoftFilters) Add LQ2x 2014-05-02 21:09:59 +02:00
twinaphex
6fd54d9659 Split up softfilter struct definitions into separate header file -
so as to make it not part of the softfilter API header
2014-05-02 19:12:56 +02:00
twinaphex
61d2b49a1d (SoftFilters) Blargg NTSC - don't use restrict keyword 2014-05-02 00:22:01 +02:00
twinaphex
01ceaa9d27 (Griffin) Bake in Blargg NTSC NES/SNES filters into Griffin now.
All console ports should have them now
2014-05-01 06:09:06 +02:00
twinaphex
3107c9adb5 (SoftFilters) Uniquely name all variables and put header guards around
snes_ntsc.c (this will be needed for later static linking inside
Griffin)
2014-05-01 06:01:43 +02:00
twinaphex
b40b9e55d2 (SoftFilters) Added Blargg NTSC NES/SNES RF/RGB/Svideo as well 2014-05-01 05:43:38 +02:00
twinaphex
5e317202e1 (Filter) Blargg NTSC SNES composite should now be fixed - RGB565 only
right now
2014-05-01 05:27:49 +02:00
twinaphex
068e2927aa (SotFilters) outpitch was pre-shifted in render function for 32bpp
- set rgb565 equivalent to 16bpp shift
2014-05-01 05:22:17 +02:00
twinaphex
7959a85311 (SoftFilters) (Currently broken) blargg NTSC SNES adaptation - needs
first and last line bits properly implemented
2014-05-01 05:05:03 +02:00
Themaister
795503f108 Just define EGL_OPENGL_ES3_BIT_KHR instead. 2014-04-30 10:01:32 +02:00
Themaister
75077fa553 Should fix build with outdated EGL headers. 2014-04-30 09:27:49 +02:00
twinaphex
91294d71fe (SDL gfx driver) Some cleanups 2014-04-30 04:04:59 +02:00
twinaphex
ba46770f3c Rework frontend.c and make it possible to compile without HAVE_MENU
defined again
2014-04-30 04:00:39 +02:00
twinaphex
f9cff5b00d Move extern references to built-in filters to driver.h 2014-04-30 02:38:13 +02:00
twinaphex
cdc60da07f (DSP Filters) Add code for HAVE_BUILTIN_FILTERS 2014-04-29 21:56:50 +02:00
twinaphex
4a119d9d94 (SoftFilters) More of aforementioned 2014-04-29 00:41:29 +02:00
twinaphex
d0a8fdc0bc (SoftFilters) Add some more safety checks before executing certain function pointers 2014-04-29 00:36:52 +02:00
twinaphex
931d54df1d (SoftFilters) Rewrite softfilter_get_implementation_from_idx - should be more
easily maintainable now without ugly switch
2014-04-28 22:38:05 +02:00
Themaister
e9161f67fe Avoid reading back random RGUI frames in async recording. 2014-04-27 10:40:24 +02:00
OV2
6373f9acd3 (D3D) use new instead of calloc so that constructors are run 2014-04-26 13:26:01 +02:00
Themaister
09d7155c7a Fix GL_DEBUG for GLES. 2014-04-21 14:46:59 +02:00
Themaister
f26593e0b6 Add core context support to X/EGL and KMS/EGL. 2014-04-20 13:54:29 +02:00
twinaphex
cc8bca68fc (SoftFilter) Makefile - can compile filters now on OSX 2014-04-19 20:46:05 +02:00
Themaister
80a12ae1d6 Don't create PBO scaler if not needed. 2014-04-19 17:27:49 +02:00
Themaister
c39d27fd8d Add async readback to GLES3.
Have support for PBOs and glMapBufferRange.
2014-04-19 17:22:25 +02:00
Themaister
095718c855 Only bind shared context if necessary. 2014-04-19 16:59:26 +02:00
Themaister
1cbb47229a Make video_shared_context an option.
Might be part of libretro API later if necessary. Must be discussed with
other frontend developers first.
2014-04-19 16:37:39 +02:00
Themaister
5614a77cec Build fix. 2014-04-19 16:25:27 +02:00
Themaister
5bdd368192 Add Windows shared context. 2014-04-19 16:21:37 +02:00
Themaister
105872a42c Add HW context support to X/EGL and KMS/EGL. 2014-04-19 16:06:25 +02:00
Themaister
f658112756 Add experimental support for separate HW contexts. 2014-04-19 15:37:00 +02:00
twinaphex
71cdc3b6ba (SoftFilters) 2xBR - big-endian code fixes for XRGB8888 codepath 2014-04-19 01:56:42 +02:00
twinaphex
b3c44061b2 (PS3) Fix some warnings 2014-04-19 01:56:12 +02:00
Twinaphex
8a47921982 (SoftFilter) 2xBR - compatibility build fix 2014-04-18 14:31:27 -07:00
twinaphex
811faf5022 (SoftFilters) XBR8888 code added by Hyllian 2014-04-18 22:57:28 +02:00
twinaphex
0b74d81f97 (SoftFilters) 2xBR - fixed warnings 2014-04-18 21:21:10 +02:00
twinaphex
0a4e839384 (SoftFilters) 2xBR fixed by Hyllian 2014-04-18 20:43:34 +02:00
twinaphex
8e015a71b4 (Apple) Build fix 2014-04-17 22:10:37 +02:00
twinaphex
d8de45a6c9 (SoftFilter) cleanup scale2x.c 2014-04-17 21:00:42 +02:00
twinaphex
34fc044bbf Filters need to be C90-compatible for Android build 2014-04-17 20:51:46 +02:00
Twinaphex
4e2572bbfe (MSVC 360) Build fix 2014-04-17 17:42:41 -07:00
twinaphex
8ea17075aa (SoftFilters) Port EPX to SoftFilter spec - RGB565 only for now 2014-04-17 17:21:35 +02:00
twinaphex
00ac99148a (SoftFilters) 2xSaI - Add 4444 macros 2014-04-17 16:40:59 +02:00
Themaister
f8d065eeb6 [HW render] set known blending equation. 2014-04-17 15:32:36 +02:00
twinaphex
37c8ea816c (SoftFilters) Fixes crashes with HQ2x - note - HQ2x is very slow due to YUV table 2014-04-17 14:58:30 +02:00
twinaphex
aa3cdb4e05 (SoftFilters) Cleanup scale2x.c 2014-04-17 13:39:06 +02:00
twinaphex
7d1de6a319 (SoftFilters) 2xSaI and SuperEagle support XRGB8888 now too 2014-04-17 13:35:57 +02:00
twinaphex
2f250d804a (SoftFilter) Fixed XRGB8888 for Super2xSaI - got rid of 'sai_write' function 2014-04-17 13:14:05 +02:00
twinaphex
f2fe9b23a1 (SoftFilters) Simplify all Kreed xSaI filters 2014-04-17 12:21:18 +02:00
twinaphex
08ab8a122f (SoftFilters) Simplify Super2xSaI code for interpolation/getresult functions- and add 32bpp routines - broken colors for 32bpp 2014-04-17 11:57:17 +02:00
twinaphex
cfb9cbdbd1 (SoftFilters) Refactor super2xsai.c 2014-04-17 11:14:57 +02:00
twinaphex
8a214da781 (SoftFilters) Add SuperEagle filter (RGB565 only for now) 2014-04-17 00:53:19 +02:00
twinaphex
c762f61efc (xSaI) Refactor some code 2014-04-17 00:05:33 +02:00
twinaphex
fc120db9d7 Add super2xsai.c 2014-04-16 21:15:57 +02:00
twinaphex
e693e93b57 (SoftFilter) Add Super2xSaI filter (RGB565 only for now) 2014-04-16 21:15:02 +02:00
twinaphex
2b3624a864 (SoftFilters) Fixed HQ2x 2014-04-16 18:12:31 +02:00
twinaphex
09bb2b4fae (SoftFilter) 2xBR - Hook up last_second and first_second to
worker thread function
2014-04-16 18:00:19 +02:00
twinaphex
c6e64d5c69 (SoftFilter) Add first_second and last_second to filter_thread_data
for 2xBR
2014-04-16 17:59:35 +02:00
twinaphex
6cd2cb4abe (SoftFilter) Refactor HQ2x somewhat 2014-04-16 17:43:52 +02:00
twinaphex
390d198812 Uniquely name gfx/scaler/filter.c for MSVC 2014-04-16 15:48:33 +02:00
twinaphex
09d29d267a (RARCH_CONSOLE) Fix rarch_softfilter_get_name for consoles 2014-04-16 13:42:50 +02:00
twinaphex
5c0f30c569 (SoftFilter) Compile with release set to release by default 2014-04-16 13:30:17 +02:00
twinaphex
b4a6635e67 (SoftFilter) Port of HQ2x- segfaults sporadically - needs fixing 2014-04-16 13:29:32 +02:00
twinaphex
9772c48016 (SoftFilter) Cleaner and more portable way of grabbing the name from the filter 2014-04-16 06:48:24 +02:00
twinaphex
a090806abc (SoftFilters) Add 2xSaI filter - RGB565 only for now 2014-04-16 06:34:20 +02:00
twinaphex
8d6a7dbe1f (Console) Bakes in filters now for ifndef HAVE_DYLIB targets 2014-04-16 03:33:10 +02:00
twinaphex
45c917afa4 Compile in filters for console ports (HAVE_DYLIB not defined in
Griffin)
2014-04-16 02:09:09 +02:00
twinaphex
4cd1094151 Add Makefile for filters (needs to be made crossplatform later) 2014-04-16 01:49:21 +02:00
twinaphex
b5dc514f1a Add untested Hylian 2xBR C code - right now shows some broken colors
and that's it
2014-04-16 00:55:09 +02:00
twinaphex
6bb5a08f3e (Softfilters) Prevent code duplication in scale2x.c 2014-04-15 21:18:43 +02:00
twinaphex
bbcac9463b Cleanup scale2x.c 2014-04-15 21:04:26 +02:00
Themaister
ff424e239d Fixup filters. 2014-04-15 19:36:42 +02:00
twinaphex
a17c814ea7 Rename dark.c to darken.c 2014-04-15 19:24:06 +02:00
twinaphex
db9e69c0c6 Uniquely name dark.c functions 2014-04-15 18:45:11 +02:00
twinaphex
ea00f26414 (SoftFilters) Port of scale2x.c - buggy/broken 2014-04-15 18:25:28 +02:00
twinaphex
5993a63d77 Add experimental 16bpp code to dark.c softfilter - WIP 2014-04-15 18:04:42 +02:00
Themaister
980eefdd8c Autodetect number of CPU cores for softfilter. 2014-04-15 17:55:40 +02:00
Themaister
0e406c998d Fix CXX_BUILD. 2014-04-15 12:40:27 +02:00
twinaphex
6bdd5cf6ec Add RGUI actions for Softfilter directory path and Softfilter selection -
maister - test if this works - it doesn't here on my end and keeps saying
that the example softfilter (dark.c) has the wrong color format)
2014-04-15 06:19:24 +02:00
twinaphex
a0bce9d467 (Filters) Rewrite dark.c so that it can be compiled by MSVC 2014-04-15 05:06:27 +02:00
twinaphex
347b2bfb6a Move gfx/softfilter.h to gfx/filters/softfilter.h and put gfx/filters/dark.c
into repo
2014-04-15 05:01:31 +02:00
Themaister
c88941d23a Should avoid UTF-8 segfault in bitmapfont. 2014-04-15 04:43:14 +02:00
Themaister
90d4a28a88 Fix type derp. 2014-04-15 04:29:51 +02:00
Themaister
b1c238c0d6 Add threaded filtering. 2014-04-15 04:05:56 +02:00
Themaister
3e83e45a7d Better error handling of filter stuff. 2014-04-15 00:33:13 +02:00
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