twinaphex
26b62ba42e
Don't abuse g_extern.lifecycle_state for setting RARCH_QUIT_KEY
...
anymore
2014-06-02 09:52:30 +02:00
twinaphex
753d78dfd3
(Performance counters) Add performance counters to regular build
...
(Menu/Setting) Enable g_extern.perfcnt_enable - turns RetroArch
frontend perfcounters on/off
(Menu) Add menu option 'Performance Counters'
2014-06-01 22:07:39 +02:00
twinaphex
08c8e5fb5f
Reduce amount of includes for rarch_console.h
2014-06-01 03:08:26 +02:00
twinaphex
6ae820eea8
(360) Build fixes - due to same 'cannot convert parameter 1 from
...
'void *' to 'gfx_shader *'
2014-06-01 02:38:01 +02:00
twinaphex
d63a23dd06
Header changes
2014-05-31 21:23:53 +02:00
twinaphex
9da9cafd3b
remove extraneous header include in gfx/shader_parse.h
2014-05-31 21:19:28 +02:00
TroggleMonkey
7bc8d79cb1
Give float FBO's priority over sRGB FBO's (half-undo commit 48331e82
).
...
sRGB FBO's should be a fallback when both are set to true: sRGB FBO's avoid
banding, but float FBO's also avoid clipping. Users wanting to avoid both
might prefer float FBO's, but they're not supported on as many platforms,
so sRGB FBO's are the next best thing. Also make errors more specific and
indent nearby #ifdef/#endif pairs to make them easier to match visually.
2014-05-31 00:55:08 -04:00
twinaphex
01b826c32f
(D3D PC) Properly implement WM_DESTROY again
2014-05-30 22:46:47 +02:00
twinaphex
ab75946bbc
(MSVC 2010) Build fix
2014-05-30 22:40:57 +02:00
twinaphex
65f5e1c74f
(PS3) libdbgfont - double buffer size in bytes (was getting crashes
...
with a lot of shader parameters )
2014-05-30 22:19:51 +02:00
twinaphex
6307202a6d
(Menu) render_messagebox/render/frame functions from menu_ctx no longer
...
get a rgui handle passed to them
2014-05-30 21:51:12 +02:00
twinaphex
a59c3cba6e
(D3D PC) Add quitting variable
2014-05-30 21:17:34 +02:00
Themaister
c5ef4330d1
Remove reset interface from SW SDL and Xvideo.
2014-05-30 18:13:34 +02:00
twinaphex
c020f362b6
Remove hacky restart function in video interface
2014-05-30 17:57:21 +02:00
twinaphex
0217bcfbce
(PC D3D) Update PC D3D driver to make it more inline with XDK D3D
...
driver
2014-05-30 08:22:56 +02:00
twinaphex
1eef295450
(XDK) Fixes FPS count
2014-05-30 06:31:53 +02:00
twinaphex
288cf25319
(360 HLSL) Build fix
2014-05-30 03:43:24 +02:00
twinaphex
ffd68d4878
(Xbox) Seems that Xbox D3D does not free up all resources
...
for some reason and that they didn't anticipate full teardown/setup.
Not sure if I can confirm, but it has been hell so far trying to get
this to work. So, instead, implement a butt-ugly hack that forces
ownership over video/input lifetime state. Will properly refactor
the driver.*_data_own variables later so that this hack is less
ugly. Ideally we'd solve the teardown/setup problem but given this
is esoteric D3D gibberish - good luck debugging >_>
2014-05-30 01:48:55 +02:00
twinaphex
e48123ba30
(XDK) Cleanups
2014-05-29 23:34:26 +02:00
twinaphex
020546f923
(XDK) Take out Xbox-specific destruction code in gfx_ctx_destroy
2014-05-29 22:45:45 +02:00
twinaphex
6e333c966c
(Xbox/D3D) Make two drivers more alike
2014-05-29 17:35:24 +02:00
Themaister
01e0fac94f
Return gl->quitting.
...
Quit state might be set just once depending on the context driver.
2014-05-29 10:33:17 +02:00
twinaphex
fc1e9786bb
(D3D) Work towards common base driver
2014-05-29 08:20:32 +02:00
twinaphex
125a4e3c43
(PS3 Cg) Fixed crash at game start - Cg state was never properly
...
deinited for PS3 before and we relied on a very dirty hack to set
CgContext to NULL - we can get rid of all that crap now.
PS3 build is now 'fixed' - only thing remaining is that we should
have a mechanism inside the menu to 'reinit' any graphics assets that
were previously set before we lost the state (for instance - RMenu
has one texture image it loads at init_assets time).
2014-05-29 01:36:41 +02:00
twinaphex
4e79de20a1
(GX) Make gx video driver more resilient
...
(Image RPNG) GX build fix
2014-05-29 00:57:40 +02:00
twinaphex
4d7a1bd21f
(GL) Make driver more resilient in case gl is NULL
2014-05-29 00:43:47 +02:00
twinaphex
5b59b7e267
(GL) Less chance of segfaults if gl is NULL
2014-05-29 00:30:48 +02:00
twinaphex
b683feb389
(RARCH_CONSOLE) More cleanups to PS3 input/graphics drivers - don't do
...
early exit out of graphics/input free functions and ditto for init
function
2014-05-28 23:32:14 +02:00
Themaister
731e44ba60
Kill SDL_image with fire.
2014-05-28 21:19:38 +02:00
twinaphex
e1387a7b0b
Take out image driver
2014-05-28 21:14:33 +02:00
Themaister
f1db922c26
Add sanity check for Cg/GLSL attrib indices.
2014-05-28 19:30:36 +02:00
twinaphex
ac4377ad23
(Android) Get rid of the warning in gfx/shader_parse.c
2014-05-28 04:10:34 +02:00
twinaphex
961c1189fd
(PSGL) More PSGL ifdefs
2014-05-27 22:27:16 +02:00
twinaphex
c5f43963c0
(PS3) Add raw PSGL ifdefs
2014-05-27 22:15:25 +02:00
twinaphex
0ea15de950
(GL) Force fp_fbo to false for PS3 for now
2014-05-27 21:55:54 +02:00
twinaphex
5da884036e
(PS3) Starts to somewhat get back to booting - still a lot of
...
breakage to go through
2014-05-27 21:38:30 +02:00
Twinaphex
a56d57c615
Merge pull request #706 from libretro/shader-parameter
...
Shader parameter
2014-05-27 16:28:06 +02:00
twinaphex
3655d9e2aa
(SDL) Add note for image_sdl.c
2014-05-27 04:53:12 +02:00
twinaphex
0e679d4309
(GL raster font) Make it possible to set alpha levels. By
...
implementing this, we can get rid of the copy-pasta gl raster
font code in Lakka
2014-05-27 04:22:08 +02:00
Themaister
ca2715841b
Fix Win32 build.
2014-05-26 18:52:35 +02:00
Themaister
b0ad6674f4
Rebase fix.
2014-05-26 18:49:06 +02:00
Themaister
ca3d4416d3
Can save parameters. Can tweak on RGUI presets and current shader.
2014-05-26 18:48:29 +02:00
Themaister
b38c30b368
Can tweak shader parameters from RGUI.
...
Just need to figure out how to handle parameter saving now.
2014-05-26 18:47:49 +02:00
Themaister
b88c678213
Don't make Cg argv static.
2014-05-26 18:47:49 +02:00
Themaister
d304907e7f
Set up shader defines for aliases.
2014-05-26 18:47:49 +02:00
Themaister
dab36b5870
Support aliased pass names from CGP/GLSLP.
2014-05-26 18:47:49 +02:00
Themaister
b0e014adc6
Expose currently selected shader via poke interface.
2014-05-26 18:47:49 +02:00
Themaister
83b37812b8
Set parameter uniforms.
2014-05-26 18:47:48 +02:00
Themaister
5c3e2f9e0a
Parse params from cgp.
2014-05-26 18:47:48 +02:00
Themaister
4722b6af75
Experiment with shader parameters.
2014-05-26 18:47:48 +02:00
Themaister
c7eee695ce
Remove references to XML shaders.
2014-05-25 23:40:14 +02:00
Themaister
25e56d8db0
Kill support for XML shaders.
...
Long overdue ...
2014-05-25 17:16:45 +02:00
twinaphex
b162329eab
(GL) Hoist some more identical lines out of if (stencil) else block
2014-05-22 21:26:57 +02:00
twinaphex
669f59d864
(GL) Take identical line out of if-else blocks
2014-05-22 21:24:38 +02:00
twinaphex
d636d4a10a
(GL) Add RARCH_GL_MAX_RENDERBUFFER_SIZE
2014-05-22 21:00:17 +02:00
twinaphex
194f90f3f9
(GL) Add custom versions of RARCH_GL_DEPTH_ATTACHMENT and RARCH_GL_STENCIL_ATTACHMENT
2014-05-22 20:58:32 +02:00
twinaphex
7378f21a36
(OSX PPC) Add _EXT versions of GL_RENDERBUFFER and GL_DEPTH24_STENCIL8
2014-05-22 20:45:41 +02:00
twinaphex
9fd55c301c
(GL) Define RARCH_GL_RENDERBUFFER and RARCH_GL_DEPTH24_STENCIL8
2014-05-22 20:44:33 +02:00
twinaphex
2eea12e17e
COLOR_ATTACHMENT_0 and GL_FRAMEBUFFER_COMPLETE are defined differently
...
for PSGL and OSX PPC as well
2014-05-22 20:32:51 +02:00
twinaphex
6c87c2494c
(OSX PPC) Add OSX PPC define
2014-05-22 20:30:21 +02:00
twinaphex
9cbdb708c9
(GL) Turn GL_FRAMEBUFFER into manual define (PSGL needs different
...
define, so does Mac PPC)
2014-05-22 20:23:02 +02:00
twinaphex
07e567990d
(Gfx filter) Fix warning
2014-05-21 18:23:28 +02:00
Themaister
b02b6a1d62
Pass correct width to SNES_NTSC_OUT_WIDTH.
2014-05-20 22:28:14 +02:00
twinaphex
216a3e4ea7
(QNX) Change __BLACKBERRY_QNX__ define to __QNX__
2014-05-20 02:48:11 +02:00
twinaphex
d62164c4ae
(BB10) Build fixes
...
(General) Fix some unused variable warnings
2014-05-17 22:16:25 +02:00
twinaphex
3e667a8c07
(Playbook) Fix build
2014-05-17 14:36:15 +02:00
Themaister
96c324da08
Avoid needless branch.
2014-05-16 18:11:47 +02:00
Themaister
59c64f9c5a
Fix off-by-one error with PASSPREV.
...
Fix include bug in cg2glsl.py.
2014-05-16 16:17:02 +02:00
Twinaphex
3879f1214d
(image_rpng.c) Fix warning
2014-05-13 09:43:02 -07:00
twinaphex
f8e40f613b
(Input) Move console input drivers to input/ directory - should start getting rid of
...
all these platform-specific folders cluttering up the codebase tree
(GL) Build fix for PS3 - current MiniGL implementation doesn't support SRGB
(Griffin) shader_common only baked in if HAVE_SHADERS defined
2014-05-13 17:01:27 +02:00
Themaister
38c0777b3c
Fix indent.
2014-05-11 22:33:34 +02:00
twinaphex
d9e31151ed
(Lakka/GL) Take out HAVE_LAKKA hack in gl.c - animations/tweening needs to
...
be fixed though
2014-05-11 20:47:44 +02:00
Themaister
6d99bb2e2a
Fix fullscreen swapping with cached context cores.
2014-05-11 20:10:17 +02:00
Themaister
7559ca12ef
Refactor sRGB FBO handling a bit.
2014-05-11 19:35:54 +02:00
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