twinaphex
3e41cbc381
Revert "Add get_metrics to poke interface"
...
This reverts commit 119689c940
.
2020-08-02 23:44:28 +02:00
twinaphex
119689c940
Add get_metrics to poke interface
2020-08-02 19:25:45 +02:00
twinaphex
60f3265017
Cleanups
2020-07-27 13:16:14 +02:00
twinaphex
3d893b7602
Add extra parameter to unload_texture
2020-07-27 10:15:28 +02:00
twinaphex
9f20a48602
(D3D10/11/12) Implement resolution callback functions
2020-07-25 11:47:49 +02:00
twinaphex
7c66f0adbc
Simplify win32_check_window
2020-07-18 17:09:07 +02:00
twinaphex
87b9c2a367
Add HAVE_REWIND switch
2020-07-01 21:04:05 +02:00
twinaphex
2660182d52
Get rid of gfx_widgets_ready call inside
...
gfx_widgets_frame
2020-06-08 05:45:15 +02:00
twinaphex
9ace693ec0
Refactor menu_driver_frame
2020-05-19 16:20:43 +02:00
valadaa48
6e4228b054
Add drm_go2_ctx for odroidgo2
...
- Revert odroidgo changes to drm_ctx
- Introduce new drm_go2_ctx specifically for odroidgo2 (and libgo2)
- Add hw_scaling option to mitigate builtin gl scaling/filtering and to
use libgo2 and rga's hw scaling and bicubic filtering via librga. The
quality of the image is improved by this and should be a bit faster.
Credits to CrashOverride for the initial libgo2 port and
commit to RA. And to natinusala for the initial cleanup/commit in the original
drm_ctx driver. NOirBRight for finding this setting and testing.
2020-03-28 03:30:28 +00:00
jdgleaver
086c68bca7
Enable widget persistence across drivers_init()/driver_uninit() events
2020-03-11 11:47:13 +00:00
twinaphex
f4c5036c3c
Get rid of video_frame_info dep for fonts
2020-03-10 03:24:59 +01:00
twinaphex
4e6f26d2e4
(Video drivers) Cleanups
2020-03-09 16:24:20 +01:00
twinaphex
c32cb51755
Cleanups
2020-03-08 01:45:29 +01:00
twinaphex
f0bf2df92f
Get rid of stale PERF_START/PERF_STOP macros in d3d files
2020-03-07 23:16:25 +01:00
twinaphex
68664fdf1d
update_title - we don't need video_info
2020-03-06 22:11:44 +01:00
twinaphex
3a94c52426
(gfx drivers) Start reducing settings pointer usage
2020-02-18 14:51:40 +01:00
twinaphex
7c7d0f596a
HAVE_MENU_WIDGETS now decoupled from HAVE_MENU
2020-02-17 21:28:42 +01:00
twinaphex
b00bf17153
Move menu_widgets to gfx/ and call it gfx_widgets
2020-02-17 01:54:07 +01:00
twinaphex
b229f267e4
Rename menu_widgets to gfx_widgets
2020-02-17 01:43:40 +01:00
twinaphex
ec302bc4fc
video_set_nonblock_state - remove settings dependency
2020-02-16 22:26:07 +01:00
twinaphex
47af95469a
(font_driver.c) Remove configuration.h dependency
2020-02-16 21:59:03 +01:00
twinaphex
64c515bac4
Turn while (true) into for (;;) for easier MSVC backwards compatibility
2020-02-01 04:15:22 +01:00
twinaphex
f0e889b552
Change prototype of video_driver_set_size
2020-01-31 15:06:50 +01:00
twinaphex
f92a507a9b
Change function signature of font_driver_render_msg
2020-01-04 16:24:14 +01:00
twinaphex
3e1f56d57f
Change function signature of win32_has_focus
2020-01-04 15:49:23 +01:00
twinaphex
91baea201a
Change function signature of win32_show_cursor
2020-01-04 15:40:02 +01:00
GH Cao
91ee8c8ee6
D3D11: Block 9_3 devices, implement gl failback
2020-01-03 09:44:24 +08:00
GH Cao
a4e810795c
D3D: Add get_metrics
2020-01-03 09:40:41 +08:00
LazyBumHorse
a882901e39
save unmodified auto-shaders as a reference instead of a copy, see:
...
- implement #reference directive for auto-shaders
- replace usual preset saving and loading functions with video_shader_read_preset() and video_shader_write_preset()
- apply saved presets automatically for console menus
- move auto-shader saving logic from menus into menu_shader.c menu_shader_manager_save_auto_preset()
- refactor menu_shader_manager_save_preset() into menu_shader_manager_save_preset_internal()
2019-08-22 16:57:28 +02:00
twinaphex
d52c573e13
Merge slang_preprocess.cpp into slang_process.cpp
2019-08-18 18:55:22 +02:00
twinaphex
6c671faed6
Start preparing for menu_widgets_ready to be moved to retroarch.c
2019-08-15 14:20:51 +02:00
twinaphex
65b4c2595e
Update set keyboard mapping code for input driver
2019-07-27 02:21:24 +02:00
Roman Fomin
e01095a51b
Fix maintaining aspect ratio
2019-07-23 01:33:43 +07:00
LazyBumHorse
f8b92770d4
simplify video_shader_read_conf_preset() calls
2019-07-21 18:15:28 +02:00
LazyBumHorse
2245af23e9
much improved handling of relative shader paths
...
- save texture paths in relative format as well
- always write portable relative paths on Windows using '/' instead of '\'
- remove an ancient piece of code that could sometimes fail loading relative paths
- fix absolute path handling between different drives for Windows
- integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
twinaphex
c0787accc3
Use config_file_new_from_path_to_string
2019-07-18 12:13:09 +02:00
twinaphex
09f5d2c95d
Fix compilation when configuring with --disable-overlay
2019-07-10 05:39:50 +02:00
LazyBumHorse
7b6444d911
temporary workaround for d3d10-12, gx2 not being able to poll flags during init
2019-06-19 19:10:40 +02:00
twinaphex
5d91af629e
Set SHADERS_SLANG flag for D3D10/11/12 and query the video driver poke
...
interface's 'get flags' function before querying the video context
driver's 'get flags' function (D3D10/11/12/WiiU don't have a context
driver at all)
2019-06-19 03:18:28 +02:00
Brad Parker
d01f04c146
d3d10/11/12: add GPU selection
2019-06-18 16:35:50 -04:00
LazyBumHorse
c20c67bd3a
proper shader compatibility checks
...
- move shader flags from the video drivers to the context drivers
- rework config_load_shader_preset() from configuration.c into retroarch_load_shader_preset() in retroarch.c with proper compatibility check
- implicitly call retroarch_load_shader_preset() in retroarch_get_shader_preset() once per core/content life cycle
- use video_shader_is_supported() instead of video_driver_test_all_flags() where appropriate
- remove GFX_CTX_FLAGS_NONE because it is meaningless
2019-06-18 13:46:41 +02:00
LazyBumHorse
692dc9f6a9
refactor shader checks affected by last commit and more:
...
- gl.c: refactor backend fallback into more general gl2_get_fallback_shader_type
- d3d9-12, gl_core, gx2_gfx, gl, vulkan: more consistent shader init and `set_shader` behavior
- configuration.c: remove check_shader_compatibility
- shader_glsl.c, shader_gl_cg.c: use `video_shader_get_type_from_ext`
- shader_gl_cg.c: add shader type check with fallback to stock like in shader_glsl.c
- menu_shader.c: use `enum rarch_shader_type` instead of `unsigned`
- video_shader_parse.c: add `video_shader_to_str` for easier logging
- remove `type` from `struct video_shader`, which was always set to CG and wrongly used in lang_process.cpp's `slang_process()` (has no further consequences because the code is unused)
2019-06-18 13:44:19 +02:00
twinaphex
ee3208ac39
Integrate video_driver.c into retroarch.c
2019-06-17 15:10:22 +02:00
twinaphex
f60306b232
Rename read_conf_cgp/write_conf_cgp to
...
read_conf_preset/write_conf_preset
2019-06-15 09:00:35 +02:00
LazyBumHorse
b54ad4d67f
implement FrameDirection slang semantic for d3d10,11,12
2019-05-29 18:09:37 +02:00
twinaphex
6aed230930
Reimplement 'Take Screenshot' - if GPU-accelerated viewport screenshots
...
are not available, resort to raw screenshots instead
2019-05-22 07:08:11 +02:00
Huw Pascoe
2c56011f84
video_layout interface
2019-05-11 09:58:48 +01:00
twinaphex
bc2bdd5734
config_file_read not needed anymore
2019-04-30 13:37:10 +02:00
twinaphex
146b4ccc50
Use config_file_read in more places
2019-04-22 02:20:04 +02:00
twinaphex
702c889cd1
(D3D10/11/12) Menu widgets can now appear ingame
2019-04-11 02:22:21 +02:00
twinaphex
c12e8dea07
(D3D10/11) All struct members are already being set
2019-04-08 18:42:52 +02:00
twinaphex
f67bfa24ef
Get rid of video_poke_interface set_mvp
2019-03-18 15:19:11 +01:00
twinaphex
fe1255094f
Get rid of now unused set_coords in video_driver_poke_interface
2019-03-18 05:04:23 +01:00
twinaphex
643cd1923e
CXX_BUILD / C89_BUILD buildfixes
2019-03-14 14:14:44 +01:00
twinaphex
365053266f
Add more flags
2019-03-13 11:04:52 +01:00
twinaphex
2c024f400e
Start hooking up extra shader capability stats - not done yet
2019-03-13 00:54:11 +01:00
Brad Parker
10df615d14
add "Send Debug Info" option under Help
2019-03-07 19:17:54 -05:00
Brad Parker
5e177c75a5
add memory stats to more context drivers, use correct default variables for fps/stats/framecount/memory_show
2019-02-15 15:59:00 -05:00
twinaphex
dd21cfd825
(D3D11) Implement menu widgets - offset is wrong
2019-02-07 00:43:36 +01:00
orbea
c9b0ba1123
Fix travis warnings.
2019-02-05 11:27:01 -08:00
orbea
28ff4b391a
Clean up white space.
2019-02-03 16:00:50 -08:00
twinaphex
406d927f6b
(D3D11) Comment out performance counter
2019-01-29 08:57:06 +01:00
natinusala
04b2ffcb9e
Fix scissoring for d3d10 and d3d11
2019-01-28 19:23:46 +01:00
Brad Parker
29a07895b9
implement scissor test for D3D10/11, fixes #7897
2019-01-26 18:52:49 -05:00
M4xw
7d186f7d2c
Revert PR #8043
2019-01-20 20:06:57 +01:00
Nano
c017271d8a
Fix #6747 Black bug
2019-01-19 10:26:06 +01:00
Twinaphex
01397f008a
Revert "Fix issue #6747 black bug"
2019-01-10 22:52:13 +01:00
Nano
f1ba335cb3
Fix issue #2791 black bug
2019-01-09 22:52:45 +01:00
orbea
bfc366decc
Squeeze extra blank lines with cat(1).
...
Example:
find . -type f -iname '*.c' | while read -r i; do
cat -s "$i" > "$i.new"
mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
twinaphex
2686cf1498
Fix disable-rgui
2019-01-06 17:04:28 +01:00
twinaphex
88e283f0c1
(D3D10/11/12) Some buildfixes
2018-12-30 04:51:03 +01:00
krzys-h
1cb1ea55b1
Bugfix - creating swap chain twice in d3d11
...
Not sure what I was thinking when writing this
dd60b5d576 (commitcomment-31801518)
2018-12-29 11:38:09 +01:00
twinaphex
dd60b5d576
MSVC2017 Non-UWP buildfixes
2018-12-29 02:54:17 +01:00
twinaphex
8f67cf7384
Some buildfixes
2018-12-29 02:20:25 +01:00
krzys-h
b201d669b5
First iteration of UWP support
...
Enough to kind of run
Working drivers: xinput, d3d11
Still missing: input driver with keyboard support, audio driver
2018-12-28 22:09:22 +01:00
radius
454efe03dc
fix auto shader preset loading in d3d10, d3d11, d3d12
2018-10-10 19:02:36 -05:00
twinaphex
a1d5b0fd03
Update MSVC 2012 solution
2018-08-16 20:49:31 +02:00
Brad Parker
12539f310d
use strl functions
2018-08-16 13:51:44 -04:00
twinaphex
41d2ebf8b5
Apparently not available
2018-05-08 00:16:20 +02:00
twinaphex
2c409c606e
(Winphone) should be _DISCARD
2018-05-07 23:19:42 +02:00
twinaphex
244f167dd5
(D3D11) Start adding D3D feature level 9 and Windows Phone ifdefs
2018-05-07 23:18:59 +02:00
twinaphex
6b31bd8b48
Only show Menu Linear Filter for RGUI and only show it for
...
video drivers that implement it
2018-04-24 15:14:06 +02:00
twinaphex
c4c8699ee3
Only show max swapchain images if supported by video driver and/or
...
context driver
2018-04-23 13:34:30 +02:00
twinaphex
6f3003554e
(D3D10/D3D11/D3D12) Don't load menu pipeline shaders unless XMB
...
is selected
2018-04-23 12:59:28 +02:00
twinaphex
6929db9fb6
(D3D10/D3D11) Compile shaders with SM 4.0 instead of 5.0
2018-04-21 05:36:59 +02:00
twinaphex
832cc4e945
(MSVC) Silence warnings
2018-04-21 05:20:22 +02:00
twinaphex
9f2b56a929
Update Direct3D 10 driver
2018-04-21 03:27:41 +02:00
twinaphex
b0e62f3ec6
(D3D11) Add more feature levels
...
(D3D11) If CreateDeviceAndSwapchain fails, error out gracefully
2018-04-17 21:29:02 +02:00
Brandon Wright
e049605359
Add refresh rate polling to Win32 >= Windows 7.
2018-04-15 19:33:38 -05:00
Brandon Wright
7a00534378
Add poke interface for get_refresh_rate.
2018-04-15 17:56:11 -05:00
twinaphex
260cd62482
Cleanup some CXX_BUILD warnings
2018-04-09 18:53:26 +02:00
twinaphex
92b46a8275
Some cleanups
2018-03-30 15:50:27 +02:00
Dwedit
2c1cb6cf55
Rename "cached_device" to "cached_device_d3d11" avoid a name conflict on griffin builds
2018-03-28 10:33:37 -05:00
aliaspider
97ecba8575
D3D11: hwrender: add support for cache_context.
2018-03-26 17:44:08 +01:00
aliaspider
3d96cacd71
add experimental D3D11 hwrender support.
2018-03-25 23:14:14 +01:00
aliaspider
88d1c1fdca
msvc build fix.
2018-03-25 23:11:31 +01:00
twinaphex
9b8713aebd
Fix Coverity defects
2018-03-24 11:59:01 +01:00
twinaphex
4d1b4f905f
Start adding OSD statistics - doesn't work yet for SDL2/SDL
2018-03-23 17:43:49 +01:00
aliaspider
72e6909aaa
(D3D) better handling of frame duping.
2018-02-12 03:25:37 +01:00
aliaspider
98682197c9
(D3D11/12) add overlays.
2018-02-12 01:19:43 +01:00
aliaspider
19aed2af36
(D3D11/12) prevent double-free when resizing framebuffers.
...
(D3D12)
- correctly support lut/filtering/wrap options for slang shaders.
- rework frame sync.
2018-02-11 22:56:37 +01:00
aliaspider
97813b9722
(D3D11/12) fix dialogbox / gradient.
2018-02-08 17:11:24 +01:00
aliaspider
757a9c08de
(D3D) refactors.
2018-02-08 00:18:04 +01:00
twinaphex
cbd5e87711
Indenting nits
2018-02-04 22:12:53 +01:00
twinaphex
534e5bbf34
Make code compatible when compiled as C++
2018-02-04 21:50:05 +01:00
twinaphex
028fc18294
Fix more warnings
2018-02-04 21:12:42 +01:00
twinaphex
2b4890220a
(D3D) Silence CXX_BUILD warnings
2018-02-04 20:40:28 +01:00
aliaspider
700fce3bd2
various fixes for CXX_BUILD.
2018-02-04 20:03:27 +01:00
Twinaphex
e5610d5ddb
Merge pull request #6228 from aliaspider/master
...
(slang) slang_process: simplify data mappings.
2018-02-03 17:27:25 +01:00
aliaspider
76d07cd6a7
(slang) slang_process: simplify data mappings.
2018-02-03 17:22:47 +01:00
twinaphex
df632814e6
Add appropriate HAVE_SPIRV_CROSS ifdefs
2018-02-03 17:13:36 +01:00
twinaphex
1464995fdc
(D3D11) ability to compile without HAVE_SLANG
2018-02-03 17:01:47 +01:00
twinaphex
dac1f10708
C89_BUILD fixes
2018-02-03 15:16:04 +01:00
aliaspider
e225e96025
(D3D11) multi-pass shaders: add support for history frames.
2018-02-03 13:29:00 +01:00
aliaspider
e30c7edd8d
(D3D11) multi-pass shaders: add support for feed-back textures.
2018-02-02 19:57:45 +01:00
aliaspider
6fe3a31617
(D3D11) multi-pass shaders: add support for wrap modes and lut
...
mipmapping.
2018-02-02 17:18:41 +01:00
aliaspider
2a25e284af
(D3D11) better handling of FBO scale.
2018-02-02 14:39:53 +01:00
aliaspider
461a936eb4
(D3D11) correct the size data of the last pass.
2018-02-01 20:56:40 +01:00
aliaspider
0aa1164a6f
(D3D11) fix fbo size when no scale factor is specified.
2018-02-01 16:29:40 +01:00
aliaspider
3865856aa2
(D3D11) add support for `#pragma format` in slang shaders.
2018-02-01 15:07:12 +01:00
aliaspider
91298255ad
(D3D11) resize fbos when the viewport size changes.
2018-02-01 12:45:35 +01:00
aliaspider
4dd8fb4df9
(D3D11) make sure the stock shader is set before drawing the menu
...
texture.
2018-02-01 12:31:24 +01:00
aliaspider
e6c455d2c6
(D3D11) move format support checks to d3d11_init_texture();
2018-02-01 11:21:51 +01:00
aliaspider
d8924d6fbb
(D3D11) clear out all unused texture/sampler bindings each pass to avoid
...
hazards with SetRenderTargets.
2018-01-31 17:05:48 +01:00
aliaspider
f7b5baccb6
(D3D11) always save emitted hlsl code when debugging.
2018-01-31 16:12:55 +01:00
aliaspider
f907f2ea7d
(D3D11) save spirv-cross's hlsl output when shader compilation fails.
2018-01-31 15:55:59 +01:00
aliaspider
5e09af9c77
(D3D11) attach identifiers to the generated slang semantic mappings to
...
simplify debugging.
2018-01-31 12:00:39 +01:00
aliaspider
5bc78d3ad5
(D3D11) Implement slang shader specification using Spirv-Cross.
...
(incomplete)
2018-01-31 01:08:36 +01:00
aliaspider
b228775b0d
(D3D10/11/12) allow building without HAVE_D3D9
2018-01-30 21:33:25 +01:00
twinaphex
03e800c1c8
Add HAVE_D3D11 to MSVC 2013 - we need non-HAVE_DYNAMIC codepaths
...
for D3D11
2018-01-29 14:05:44 +01:00
Twinaphex
f97ebfbf1f
Merge pull request #6179 from aliaspider/master
...
(D3D11) add the remaining menu shaders.
2018-01-25 17:18:59 +01:00
aliaspider
c0117f077b
(D3D11) add the remaining menu shaders.
2018-01-25 17:07:23 +01:00
aliaspider
a2cddb27e5
(D3D11) refactors.
2018-01-25 15:48:53 +01:00
twinaphex
a18e7767f3
Fix some unreferenced local variable warnings
2018-01-25 10:25:50 +01:00
aliaspider
427003fa3b
(D3D11) add ribbon shader.
...
- it doesn't look quite right though.
2018-01-25 09:48:07 +01:00
aliaspider
17aa49004f
(D3D10/11/12) prevent some crashes on driver re-init.
2018-01-25 06:24:39 +01:00
aliaspider
da3a90a025
(D3D11) misc.
2018-01-25 05:47:19 +01:00
aliaspider
2a54cbca75
(D3D11) autogen mipmaps when needed.
2018-01-25 04:57:49 +01:00
aliaspider
0cd2310a6f
(D3D11) forgot to update the included shader.
2018-01-25 01:46:30 +01:00
aliaspider
8354ffd452
(D3D12) add support for scaling/rotation im menu display driver.
2018-01-25 01:34:53 +01:00
aliaspider
45541a0d44
(D3D11) change the sprite vertex buffer to a ring buffer to avoid data
...
races with the gpu.
2018-01-25 01:03:54 +01:00
aliaspider
68a6b7f402
(D3D11) change the sampler adressing mode to clamp. fixes the background
...
in xmb.
2018-01-25 00:45:06 +01:00
aliaspider
812eefa601
(D3D11) add menu display driver.
2018-01-25 00:20:06 +01:00
aliaspider
840bd459df
(D3D11) add a font driver.
2018-01-24 20:51:19 +01:00
aliaspider
30d5cd1a07
(D3D10/11/12) add viewport settings.
...
- move some common routines to video_driver.c
2018-01-24 15:00:32 +01:00
aliaspider
a6b24ce995
(d3d10/11/12) reformat some files.
2018-01-24 07:45:45 +01:00
twinaphex
80b17668b6
Add initial VS2013 solution
2018-01-24 01:29:45 +01:00
aliaspider
956c6ca25a
(d3d10/11/12) resize swapchain correctly when the window's size changes.
2018-01-23 20:27:03 +01:00
aliaspider
a5bf9d8dc6
(D3D10/11/12)
...
.add a d3d10 driver.
.add more utility functions to d3d*_common files.
.add an image transfer/convert function to dxgi_common.
.various refactors / style nits.
2018-01-23 18:04:55 +01:00
twinaphex
6ee8ddb496
(D3D11) Some minor style nits
2018-01-22 07:35:36 +01:00
aliaspider
80df049f41
(D3D11/12) refactors/fixes. add blending and selectable samplers for
...
d3d12.
2018-01-21 23:46:50 +01:00
twinaphex
e601190ecb
(D3D11/12) Fix warnings
2018-01-21 07:57:25 +01:00
twinaphex
8d7e9b31a4
Cleanups
2018-01-21 06:34:33 +01:00
aliaspider
094196220d
(D3D11/D3D12) initial video driver implementation.
...
- some headers from the windows 10 sdk need to be added to the include
path when targeting mingw :
d3d11.h
d3d11sdklayers.h
d3d12.h
d3d12sdklayers.h
d3d12shader.h
d3dcommon.h
d3dcompiler.h
2018-01-21 04:10:45 +01:00