Connor McLaughlin
696df6e916
(video/d3d11) Skip shader/stock blend when we don't have a texture
...
This happens if the core calls video_cb with the frame set to null on
the first frame, and was causing black screens/driver resets.
The ffmpeg core seems to do this.
2020-10-01 19:19:13 +10:00
Connor McLaughlin
10bbe119a7
(video/d3d11): Fix shaders with scaled framebuffers
...
The scissor rectangle was left as whatever the core last used.
2020-10-01 16:53:19 +10:00
Connor McLaughlin
30c6f90c93
(video/d3d11) Use cached view as the slang source texture
...
Fixes shaders in D3D11 driver.
2020-10-01 00:19:11 +10:00
Connor McLaughlin
12382c057a
(video/d3d11) Cache view left bound by hw renderers
...
Fixes garbage/black screen when menu is active.
2020-10-01 00:19:11 +10:00
Autechre
7b600d46ad
Merge pull request #11342 from Ophidon/master
...
Variable BFI
2020-09-19 22:24:47 +02:00
Ophidon
05c5bdf587
C89 Compliance
...
For loop iterators updated for C89 compliance.
2020-09-19 13:28:21 -04:00
valadaa48
15708f5d44
oga_gfx: strlcpy, msg max len 128 + style nits
2020-09-19 11:23:59 -04:00
twinaphex
ca9683d58d
C89 fixes - use C style comments instead of C++, style nits
2020-09-19 14:47:40 +02:00
valadaa48
7015e199bb
oga_gfx: rewrite
...
- Drop libgo2 dep
- Use more features of RGA
- Triple buffer instead of double buffer
- Rewrite of message code to support surface caching, transluceny,
and multiline message support. Messages also don't scale with the
emulation frame anymore and are drawn directly to the frame buffer.
- Better support for aspect ratios
2020-09-18 21:24:10 -04:00
Ophidon
2f36c94f3f
Variable BFI
...
BFI support added for 180hz / 240hz / etc. Solves issue with image retention from voltage issues at 120hz BFI. Also disabled BFI while in menu, as if set to an incorrect value for the current refresh rate, could cause severe flickering and difficulty reverting to the correct value.
2020-09-18 11:57:32 -04:00
twinaphex
c436ac83cd
Call gl2_set_viewport directly
2020-09-15 11:11:32 +02:00
jdgleaver
55b6d8ba15
Miscellaneous overlay fixes
2020-09-11 17:00:44 +01:00
Autechre
33a04a794f
Merge pull request #11312 from justinweiss/3ds-enable-threading
...
[3DS] Enable threading and add a threaded audio driver
2020-09-10 06:50:12 +02:00
Autechre
2d3c63f545
Merge pull request #11248 from justinweiss/update-libctru
...
[3DS] Update to libctru 2.0
2020-09-10 06:49:54 +02:00
driver1998
9cf71619d3
GDI: use custom BITMAPINFO struct to avoid malloc
2020-09-07 12:36:43 +08:00
driver1998
fb00bf8602
gdi: Fix crashing
2020-09-07 10:55:25 +08:00
driver1998
a4dec6e226
d3d9: "Fix" the HLSL render chain
...
It won't get you very far, but at least it won't crash.
Needs HAVE_HLSL and HAVE_D3DX defines and DirectX SDK
2020-09-07 10:13:41 +08:00
valadaa48
405b987986
oga_gfx: round width to nearest integer when scaling
2020-09-03 21:53:21 -04:00
twinaphex
e810b0251a
(GL) Cleanups
2020-09-01 19:54:41 +02:00
twinaphex
5f08605680
Refactor joypad drivers
2020-08-30 05:29:32 +02:00
Justin Weiss
f53c137459
[3DS] Enable threading
2020-08-27 19:36:39 -07:00
twinaphex
4d1cfa9c41
Make the 'raw' versions the generic function for the message loop
...
callback - this way it's reused for SDL2 input driver too
2020-08-28 02:55:39 +02:00
twinaphex
32279c3a70
Split up wnd_proc_common_internal into two - one for dinput,
...
one for raw
2020-08-28 02:21:13 +02:00
Justin Weiss
9ae2514009
[3DS] Update to libctru 2.0
...
Set USE_CTRULIB_2=1 to build with libctru 2.0. When unset, this code
is compatible with the older toolchain.
Some 2.0 changes addressed rare problems in earlier versions:
- Save / restore stack pointer for init / exit
Otherwise, it could be outside of the range we deallocate.
- Run aptMainLoop in the audio driver to react correctly to sleep events
Other changes for 2.0:
- Remove ninjhax1 -- requires outdated APIs that have been removed
- Switch from __sync_arbiter to syncArbitrateAddress
- Use implicit gxCmdBuf
- Use gpuPresentBuffer for double buffering
2020-08-26 19:08:12 -07:00
twinaphex
662e37f670
Replace more instances of string_split
2020-08-26 13:35:05 +02:00
twinaphex
6b3fcf79f0
(DXGI) Turn these into macros
2020-08-24 00:04:12 +02:00
twinaphex
6b978eb057
(D3D11) Cleanups
2020-08-19 11:26:30 +02:00
twinaphex
5166eebcaf
for loop cleanups - use space after 'for'
2020-08-19 03:06:22 +02:00
twinaphex
aeeff7f350
(D3D11) Cleanup
2020-08-16 03:11:00 +02:00
twinaphex
bb58b0d6e3
(GLSLANG) Move more common code out of shader_gl_core and shader_vulkan
...
and into glslang_util.h
2020-08-16 02:05:38 +02:00
twinaphex
2a9915f80d
(D3D) Buildfix
2020-08-08 19:12:01 +02:00
twinaphex
ade58fc8b6
(UWP) Buildfix
2020-08-08 18:17:40 +02:00
twinaphex
365ca7cf63
Buildfix
2020-08-06 02:59:09 +02:00
twinaphex
a1ce1e4f1d
gl_glsl_set_proc_address unneeded - remove it
2020-08-04 03:58:51 +02:00
twinaphex
72afa2f932
Cleanups
2020-08-03 16:33:54 +02:00
twinaphex
332bcc7f9e
Remove dxgi_update_title
2020-08-03 15:48:08 +02:00
twinaphex
f3c4b4fcf7
(GLCORE) Fix other use after free issues pointed to by jdgleaver
2020-08-03 15:19:34 +02:00
twinaphex
2d10d9fd7a
(D3D10) Move these static global variables to D3D10 struct
2020-08-03 12:39:46 +02:00
twinaphex
db80281b0f
(D3D11) Move static global variables to D3D11 state
2020-08-03 12:36:51 +02:00
twinaphex
76398f4151
(glcore) Fix heap use after free
2020-08-03 12:15:52 +02:00
twinaphex
85e5c783af
Backport getting rid of video_context_driver_input_driver
2020-08-03 00:47:58 +02:00
twinaphex
deee393dfb
Backport video_context_driver_free changes
2020-08-03 00:35:07 +02:00
twinaphex
3e41cbc381
Revert "Add get_metrics to poke interface"
...
This reverts commit 119689c9405b5e4a321fafc340f6f0294b0338c3.
2020-08-02 23:44:28 +02:00
twinaphex
03fe023de4
Revert "Cleanup"
...
This reverts commit 576679ac05cae2c4eef867ef1427835b94c350a2.
2020-08-02 23:44:09 +02:00
twinaphex
da5806a810
Revert "Cleanups"
...
This reverts commit a01a2375a18bdabba2ead7de693e94cddb2622db.
2020-08-02 23:43:56 +02:00
twinaphex
2efa8ac80e
Revert "Get rid of video_context_driver_input_driver"
...
This reverts commit 75b1a09184fdf3bc502a7e62cd7137ee2741e5af.
2020-08-02 23:43:19 +02:00
twinaphex
75b1a09184
Get rid of video_context_driver_input_driver
2020-08-02 20:37:21 +02:00
twinaphex
a01a2375a1
Cleanups
2020-08-02 20:19:42 +02:00
twinaphex
576679ac05
Cleanup
2020-08-02 19:59:26 +02:00
twinaphex
119689c940
Add get_metrics to poke interface
2020-08-02 19:25:45 +02:00