Commit Graph

8009 Commits

Author SHA1 Message Date
twinaphex 5cba3f0b25 (D3D) Updates 2018-05-14 22:24:02 +02:00
twinaphex 9e63b108ae Cleanups 2018-05-14 22:20:26 +02:00
twinaphex 8361922034 Cleanup 2018-05-14 22:07:07 +02:00
twinaphex c0cd08fa11 Cleanups 2018-05-14 22:01:21 +02:00
twinaphex 4e572d6f87 Simplify calc_and_set_shader_mvp 2018-05-14 21:54:28 +02:00
twinaphex e1368a9209 (Cg D3D9) Buildfix 2018-05-14 21:42:14 +02:00
twinaphex 39f45a17d2 create d3d9_convert_geometry 2018-05-14 21:32:14 +02:00
twinaphex c941b4e922 Update D3D9 HLSL code 2018-05-14 21:26:52 +02:00
twinaphex f37f8a1076 (HLSL renderchain) Refactor code 2018-05-14 21:10:14 +02:00
twinaphex dc61c08006 Cleanups 2018-05-14 20:50:02 +02:00
twinaphex 15f2cde260 (HLSL) Start adding renderchain code 2018-05-14 20:42:28 +02:00
twinaphex 111aeb46b3 Make blit_texture a generic function used by both Cg and HLSL
renderchains
2018-05-14 19:11:45 +02:00
twinaphex c1d949b017 Rename pass_vector_list to cg_pass_vector_list 2018-05-14 18:48:47 +02:00
twinaphex 8a607e72af (D3D9 Cg) Cleanups 2018-05-14 18:46:06 +02:00
twinaphex e646366fd4 Cleanups 2018-05-14 18:42:53 +02:00
twinaphex e8ae1e324f Cleanups 2018-05-14 18:40:36 +02:00
twinaphex 7a9bfa52b0 Add comments 2018-05-14 17:51:50 +02:00
twinaphex e9054159ec Remove set_font_rect callback 2018-05-14 16:57:34 +02:00
twinaphex bf3122329b (D3D9) Buildfixes 2018-05-14 06:37:01 +02:00
twinaphex 232d3f4d92 Take out add_state_tracker function callback for D3D9 renderchain 2018-05-14 06:33:51 +02:00
twinaphex 94955eb3b5 (D3D8) Do less casting 2018-05-14 05:14:26 +02:00
twinaphex 2c5112f3ac Cleanups 2018-05-14 05:07:12 +02:00
twinaphex c40c08375c (d3d9_common.h) Cleanups 2018-05-14 05:04:45 +02:00
twinaphex cbe4c78979 (D3D8/D3D9) Cleanups 2018-05-14 04:55:33 +02:00
twinaphex 606d700bf2 No more D3D8/D3D9 header includes in d3d_common.c 2018-05-14 04:36:08 +02:00
twinaphex 8733a41e58 (d3d_common.c) Get rid of these header includes 2018-05-14 04:00:27 +02:00
twinaphex 6a9b39da3f Get rid of d3d.h and xdk_defines.h 2018-05-14 03:57:27 +02:00
twinaphex 5fe6c74b51 Remove this 2018-05-14 03:47:13 +02:00
twinaphex d1c1e4e2aa Move D3D9_DECL_FVF_TEXCOORD to d3d9_common.h 2018-05-14 03:17:26 +02:00
twinaphex 86c7e7c69f (D3D9) Uniquely name 'Pass' for cg renderchain; some more work on HLSL 2018-05-14 03:12:09 +02:00
twinaphex 1de6bf550b (D3D renderchains) Cleanups/unifications 2018-05-14 03:06:19 +02:00
twinaphex 8beed4c1ec (360) Buildfix 2018-05-14 01:50:58 +02:00
twinaphex 2dae506e88 (MSVC2003) Buildfix 2018-05-14 01:11:47 +02:00
twinaphex aea89bfde3 Cleanups 2018-05-14 00:37:03 +02:00
twinaphex 34eb78ad78 Silence some warnings 2018-05-14 00:35:01 +02:00
twinaphex 8a78b69689 Buildfix 2018-05-14 00:31:58 +02:00
Twinaphex d0a697ebf0 (MacOS) Another buildfix 2018-05-14 00:23:05 +02:00
Twinaphex f3f0c6b1d1 One buildfix 2018-05-14 00:21:08 +02:00
twinaphex 96e1b862f6 (Vulkan) Update headers - use C comments 2018-05-13 21:42:02 +02:00
Stuart Carnie 789933b333 wip: add Vulkan support to Apple platforms 2018-05-13 21:35:23 +02:00
Stuart Carnie 0a4ff225be Update Vulkan 2018-05-13 21:35:18 +02:00
twinaphex 605d88751f (HLSL) Remove XBOX ifdef 2018-05-13 19:35:20 +02:00
twinaphex 64f2efe567 Cleanups 2018-05-13 19:03:09 +02:00
twinaphex bcedf74fe4 (D3D renderchains) Cleanups 2018-05-13 18:59:57 +02:00
twinaphex 380fa6fd5e Updates 2018-05-13 18:51:05 +02:00
twinaphex 85da5360d2 (D3D9) Update 2018-05-13 18:47:24 +02:00
twinaphex 34149e510e (D3D9) Cleanups 2018-05-13 18:36:17 +02:00
twinaphex 33d2c2d422 (D3D9) Cleanups 2018-05-13 18:33:16 +02:00
twinaphex 46f23f9fbd Get rid of d3d_video_viewport 2018-05-13 18:24:19 +02:00
twinaphex 53446cc0c8 (D3D9 renderchains) Cleanups 2018-05-13 18:11:48 +02:00
twinaphex c6cc2c930c Create d3d9_log_info 2018-05-13 18:01:09 +02:00
twinaphex 8ecfd367ff Backport shader log info 2018-05-13 17:57:48 +02:00
twinaphex 770b39e769 (HLSL) Buildfixes 2018-05-13 17:28:40 +02:00
twinaphex 659d8a4ec6 (GL) Cleanups 2018-05-13 14:34:41 +02:00
twinaphex 5bde17025a Move min_filter_to_mag to gl_common.h 2018-05-13 14:24:49 +02:00
twinaphex 08820b5245 Cleanup gl_update_input_size 2018-05-13 06:43:24 +02:00
twinaphex 1f944afff7 (GL) Cleanups 2018-05-13 06:34:15 +02:00
twinaphex 999f1db694 Cleanup 2018-05-13 06:30:13 +02:00
twinaphex 41295ef7b9 Remove viewport_info callback from D3D9 renderchain interface 2018-05-13 06:29:17 +02:00
twinaphex 27170674a5 (D3D9) Cleanups 2018-05-13 06:22:12 +02:00
twinaphex dee50349ba Rename d3d_renderchain_driver to d3d9_renderchain_driver 2018-05-13 06:03:26 +02:00
twinaphex 494ddb16d9 Get rid of viewport_info callback function - was the same for both
GL1 and GL2 renderchains
2018-05-13 05:56:44 +02:00
twinaphex 6996e72b49 Move renderchain driver interface to gl_common.h - and replace
some void pointers in function callbacks with gl_t
2018-05-13 05:53:35 +02:00
twinaphex 7c90933e3a (GL1 renderchain) Updates 2018-05-13 02:44:54 +02:00
twinaphex 1763b8ad55 (GL1 renderchain) Get rid of bind_prev_texture 2018-05-13 02:41:31 +02:00
twinaphex ad2290df43 Update gl1_renderchain.c 2018-05-13 02:33:15 +02:00
twinaphex be502a39fd Cleanups 2018-05-12 19:24:04 +02:00
twinaphex 58ac7c320e (dxgi_common.c) Add more __WINRT__ ifdefs 2018-05-12 19:22:37 +02:00
twinaphex 542294900f (WinRT) More compilation fixes 2018-05-12 19:03:39 +02:00
alphanu1 dcc87f4557
fix 2018-05-11 22:21:52 +01:00
Diego A 3b738e0b2d
Always enable vfilter, enable deflicker setting in progressive scan, fix vsync set to off 2018-05-10 18:44:22 -04:00
Dwedit 387d4d87eb Fix core selection appearing unnecessarily
Re-order the dialog items in core selection dialog to make the listbox have focus
Removed the "do wm close" stuff.
2018-05-09 21:04:23 -05:00
Dwedit f3f0d4f787 Unify File Open and File Drag Drop code
* Code in `win32_drag_query_file` was split off into `win32_load_content_from_gui`
* File Open dialog now uses the same code as drag drop instead of the non-working code that was in there before.
* File Dialog and Core Select Dialog show and hide mouse cursor if they were invoked in fullscreen mode
2018-05-09 21:04:23 -05:00
alphanu1 06d411d6e7
Update dispserv_x11.c 2018-05-10 01:56:39 +01:00
Dwedit bafb23edc3 Additional null check in video_driver.c
I have managed to trigger a null pointer exception on one of these two functions, so for safety, I added in null checks for the structs and function pointers.
2018-05-09 19:25:33 -05:00
twinaphex 46f7742afc Some early WinRT commits 2018-05-09 16:13:29 +02:00
alphanu1 b89b08d1ff
changes to switching method
Added HDMI switching when CRT active, this slowed switching down. So there is also a new method to switch
2018-05-08 15:16:08 +01:00
alphanu1 1bd74718ee
added swap_interval change for CRT
Change for interlaced resolution when CRT active
2018-05-08 15:13:37 +01: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
Ash 68d789a4ea
[WiiU] Fix out-of-bounds rendering bug 2018-05-06 21:18:03 +10:00
twinaphex 6c09195f5e (D3D8/D3D9) Updates 2018-05-03 22:08:14 +02:00
twinaphex 6d019284f8 Get rid of some of the casts 2018-05-03 22:06:04 +02:00
twinaphex 82ebb9576f Create d3d9_video_t and d3d8_video_t 2018-05-03 22:03:12 +02:00
twinaphex c4a03b6b45 (xdk360_fonts.cpp) Cleanups 2018-05-03 21:39:25 +02:00
twinaphex 7bc66ae710 Buildfixes for MSVC 2015 2018-05-03 15:20:06 +02:00
twinaphex 268baca939 (MSVC 2013) Add /bigobj for griffin_glslang.cpp 2018-05-03 14:52:37 +02:00
Twinaphex c9744c5ba4
Merge pull request #6704 from Dwedit/fix-win32-bug
Fix __stdcall calling convention for Win32 32-bit builds
2018-05-03 12:20:08 +02:00
Twinaphex 78d571239c
Merge pull request #6710 from alphanu1/patch-2
Fix screen position for CRT user
2018-05-03 12:19:40 +02:00
alphanu1 7dab5b9ae3
Fix screen position for CRT user 2018-05-03 09:42:53 +01:00
alphanu1 c3beeb3ca9
Fix incorrect menu sizing for CRT 2018-05-03 09:36:37 +01:00
Dwedit 81457d74d3 Use `WINAPI` instead of `__stdcall`, not sure what keywords I can use or not, so I'll just use the macro instead of the keyword 2018-05-02 22:09:20 -05:00
Dwedit 0d2f9b9b11 Fix __stdcall calling convention for Win32 32-bit builds 2018-05-02 21:59:07 -05:00
twinaphex 95278d39f7 Buildfix for MSVC 2003 2018-05-02 01:03:40 +02:00
Twinaphex f0d25d2fd9
Merge pull request #6685 from alphanu1/master
Fix for exit error on Linux when CRT mode inactive
2018-05-01 23:01:20 +02:00
alphanu1 d1b834a301
Fix for Linux users exit error when CRT disabled 2018-05-01 21:42:29 +01:00
Twinaphex 511039330e
Merge pull request #6684 from alphanu1/master
Fix for native low res in Linux
2018-05-01 22:13:13 +02:00
alphanu1 82a2fb955e
Removed static from function to share aspect changing 2018-05-01 21:07:52 +01:00
alphanu1 97630d7fb1
Fix for native low res in Linux 2018-05-01 20:56:30 +01:00
alphanu1 c9d89e234a
Fix for native low res in Linux 2018-05-01 20:55:24 +01:00
twinaphex 33c1d55801 GetDisplayConfigBufferSizes and QueryDisplayConfig now go
through function pointers for backwards compatibility
2018-05-01 21:44:10 +02:00
alphanu1 8584e27a81
res fix 2018-05-01 20:32:34 +01:00
alphanu1 11b0fe2a97
Linux resolution improvements for CRT 2018-05-01 20:28:01 +01:00
orbea e33a12c18f Silence -Wmisleading-indentation warning
gfx/video_crt_switch.c: In function ‘crt_screen_setup_aspect’:
gfx/video_crt_switch.c:95:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if (width < 1920)
       ^~
gfx/video_crt_switch.c:97:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          height = 480;
          ^~~~~~
2018-05-01 10:17:19 -07:00
alphanu1 4b8fbf8682
Better startup resolution for CRT 2018-05-01 12:14:25 +01:00
alphanu1 cc1024ddd0
modeline tweaks, better porches 2018-05-01 12:10:32 +01:00
Brad Parker a1aefc901c Qt WIMP GUI 2018-04-30 14:33:05 -04:00
alphanu1 2226dec436
Fix incorrect variable 2018-04-30 18:41:20 +01:00
alphanu1 675da4692e
Moved variable back to the top 2018-04-30 17:54:00 +01:00
alphanu1 9400754a2b
Variable rename 2018-04-30 17:51:28 +01:00
alphanu1 db751b4241
Variable rename 2018-04-30 17:50:13 +01:00
alphanu1 11b7f76526
bug fix with hz switching 2018-04-30 17:14:19 +01:00
alphanu1 f672c7dc5c
Linux / Windows hz bug fix and Linux low res modeline generator fix
when merging Linux CRT refresh rate hz was dealt with in floats for Linux but ints for windows.
2018-04-30 16:49:22 +01:00
alphanu1 af3eb9e851
Linux / windows hz bug fix
when merging Linux CRT refresh rate hz was dealt with in floats for Linux but ints for windows.
2018-04-30 16:40:27 +01:00
Twinaphex bf64c1cf23
Merge pull request #6655 from alphanu1/master
Linux switching for CRT
2018-04-29 18:41:54 +02:00
alphanu1 896041f468
Add files via upload 2018-04-29 15:47:32 +01:00
alphanu1 16ccbbc75a
Linux switching CRT 2018-04-29 15:44:08 +01:00
alphanu1 a0b46d9a38
Code clean up and Linux switching 2018-04-29 15:38:16 +01:00
alphanu1 7d53e6a16f
Linux switching incorporation 2018-04-29 13:51:18 +01:00
alphanu1 0498ab6b86
Linux switching incorporation 2018-04-29 13:49:32 +01:00
alphanu1 a930afce31
Linux switching incorporation 2018-04-29 13:48:08 +01:00
twinaphex 4380bc52bd (MSVC) Buildfixes 2018-04-29 14:47:57 +02:00
alphanu1 1eedb0406b
Linux switching incorporation 2018-04-29 13:46:43 +01:00
alphanu1 1f8540ca9d
Changes to stop unwanted resolution change for non CRT users 2018-04-29 01:41:38 +01:00
alphanu1 90d62fd0cc
Restore resolution fix 2018-04-28 20:53:39 +01:00
alphanu1 b51c8d62e7
Restore resolution fix 2018-04-28 20:52:58 +01:00
alphanu1 6aa072b6cf
Restore resolution fix 2018-04-28 20:52:24 +01:00
Rob Loach 71c031099b
Fix missing division in mali fbdev 2018-04-27 22:44:53 -04:00
twinaphex 714f7b7b13 Cleanups 2018-04-27 23:21:44 +02:00
Brandon Wright 0e013ced75 Fix typo in mali fbdev driver. 2018-04-27 12:42:46 -05:00
twinaphex f1d707a043 Running gl_check_capability from gl_get_flags resulted in a crash
on some Android systems, so unfortunately we cannot selectively hide
away GPU Hard Sync for now
2018-04-26 20:45:01 +02:00
twinaphex 37b1c9e8e9 Add NULL entry 2018-04-26 16:05:57 +02:00
twinaphex 023e280319 win32_get_refresh_rate not available on Xbox 2018-04-25 14:20:37 +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 c506f489df (D3D8) Hook up Menu Linear Filter 2018-04-24 14:49:58 +02:00
twinaphex a75e7ede0d (D3D9) Implement Menu Linear Filter 2018-04-24 14:47:21 +02:00
twinaphex 72428a23c5 (shader_vulkan.cpp) Move some functions to vulkan_common.c 2018-04-24 07:07:58 +02:00
twinaphex 2760586086 Cleanups 2018-04-24 04:46:13 +02:00
twinaphex ebfa4bdcdc Implement two stub functions 2018-04-23 18:34:23 +02:00
twinaphex d6c17178a3 Add some logging for shader backend setup 2018-04-23 18:25:41 +02:00
twinaphex 77d815a572 Get rid of warning 2018-04-23 17:48:31 +02:00
twinaphex c90c98dcaa Silence warnings 2018-04-23 17:37:37 +02:00
twinaphex 789ef63dee (360) Don't bake in HAVE_XUI anymore; buildfixes for C++ 2018-04-23 17:35:36 +02:00
twinaphex fec8d3294c Cleanup 2018-04-23 17:23:14 +02:00
twinaphex 95ecbc0859 Update 2018-04-23 17:22:02 +02:00
twinaphex 830068e5bd Create d3d9x_constant_table_set_float_array 2018-04-23 17:20:08 +02:00
twinaphex a6fcd9dae0 Create d3d9x_constant_table_set_defaults 2018-04-23 17:09:11 +02:00
twinaphex bd3f39b005 Remove SetMatrix macro 2018-04-23 17:04:59 +02:00
twinaphex 0e5ccd7c15 Create d3d9x_constant_table_set_matrix 2018-04-23 17:04:30 +02:00
twinaphex dbb9a43abe (HLSL) Cleanups 2018-04-23 15:59:09 +02:00
twinaphex 8d02343b53 (HLSL) Cleanups 2018-04-23 15:58:00 +02:00
twinaphex d7fa70927c (HLSL) Cleanups 2018-04-23 15:55:26 +02:00
twinaphex d03ff06cf3 (HLSL) Cleanups 2018-04-23 15:51:24 +02:00
twinaphex 282b4ba21b (d3d9_common.c) Cleanups 2018-04-23 15:40:43 +02:00
twinaphex 0c4a3a83ce (HLSL) Fix implicit declaration 2018-04-23 15:32:47 +02:00
twinaphex af734939ee More HLSL work 2018-04-23 15:26:35 +02:00
twinaphex 32c92a9a22 Rename d3dxbuffer_release 2018-04-23 15:04:19 +02:00
twinaphex 45cea92ba2 Remove null_renderchain 2018-04-23 14:57:37 +02:00
twinaphex 871f04e19a (slang) Cleanups 2018-04-23 14:56:02 +02:00
twinaphex e54cb1b121 Only show black frame insertion for the video drivers/context drivers
that support it
2018-04-23 14:15:21 +02:00
twinaphex f1fa1d4879 Previously, GPU Hard Sync options would only show up if the
video driver was explicitly set to the GL driver; now, it can be
dynamically shown for more video drivers if there are going to be
more drivers supporting this feature other than GL
2018-04-23 13:42:09 +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 6f4fd8859a Add customizable swapchain images flag to VC EGL context 2018-04-23 13:12:00 +02:00
twinaphex b1a2d1991c (d3d10.c) Cleanups 2018-04-23 13:09:05 +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 eb69025ca8 Cleanups 2018-04-23 11:30:38 +02:00
twinaphex 5dc916f0b3 Take out another header include 2018-04-22 15:45:56 +02:00
twinaphex 04fa4871f0 Create d3d_translate_filter and get rid of duplicate functions 2018-04-22 15:45:11 +02:00
twinaphex 88387ccbde (D3D8) Cleanups 2018-04-22 15:34:08 +02:00
twinaphex 3a93377811 D3D8 buildfix 2018-04-22 14:55:15 +02:00
twinaphex 2a655116a6 Set #define CINTERFACE in these files 2018-04-22 14:27:39 +02:00
twinaphex 80fdd6d2a1 Less pointer/variable casting going on 2018-04-22 14:20:59 +02:00
twinaphex ca8829fe3c (D3D9) Simplifications 2018-04-22 14:00:32 +02:00
twinaphex a7e40ea3f4 (d3d8_common.c) Define CINTERFACE, get rid of C++ versions 2018-04-22 13:34:05 +02:00
twinaphex 5ee6cdf753 (d3d9_common.c) Cleanups 2018-04-22 13:26:58 +02:00
twinaphex 8de03fe843 (D3D9 common) Define CINTERFACE and get rid of C++ ifdefs 2018-04-22 13:18:56 +02:00
twinaphex 58623d7540 (d3d_common.h) Cleanups 2018-04-22 13:09:03 +02:00
twinaphex 3033dda866 (x11_common.c) Cleanups 2018-04-22 13:05:40 +02:00
twinaphex 4c941d3ada (gl2_renderchain) Try to prevent warning 2018-04-22 12:57:38 +02:00
twinaphex 248f1242dc Some warning fixes 2018-04-21 18:14:19 +02:00
twinaphex 1526c8a15d (PS3) Should fix PS3 build with context driver 2018-04-21 18:05:25 +02:00
Twinaphex f4c83157af Fix CocoaGL context driver 2018-04-21 18:06:14 +02:00
twinaphex dae0f36a20 Some cleanups 2018-04-21 15:00:35 +02:00
twinaphex 30c824c30a Try to fix MSVC warning 2018-04-21 08:54:57 +02:00
twinaphex 6d7ffef316 (gl2_renderchain.c) Update 2018-04-21 08:52:38 +02:00
twinaphex c52f53aada Some minor refactors 2018-04-21 08:47:09 +02:00
twinaphex df5586570f Make gl2_renderchain_deinit_fbo safer 2018-04-21 08:42:57 +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 8848b2837b Add D3D10 to slang supported checks 2018-04-21 05:11:24 +02:00
aliaspider b78dcf9f4c update D3D10 driver. 2018-04-21 03:56:19 +01:00
twinaphex 7515c3d7c3 (D3D10) Switch to shader model 4.0 2018-04-21 03:33:08 +02:00
twinaphex 9f2b56a929 Update Direct3D 10 driver 2018-04-21 03:27:41 +02:00
twinaphex 16df2ceb4e Fix Xbox OG 2018-04-17 11:39:59 +02:00
twinaphex 070ee2fb40 (dispserv_win32.c) Simplify code 2018-04-18 08:03:34 +02:00
twinaphex 9532a77b4f Buildfix 2018-04-18 07:53:25 +02:00
twinaphex e17c3d869d Avoid warnings on gx2_common.h 2018-04-18 06:43:21 +02:00
twinaphex b0e62f3ec6 (D3D11) Add more feature levels
(D3D11) If CreateDeviceAndSwapchain fails, error out gracefully
2018-04-17 21:29:02 +02:00
twinaphex d7d5dfdc73 Add display_server_get_current_resolution 2018-04-17 03:37:56 +02:00