Commit Graph

349 Commits

Author SHA1 Message Date
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 cbe4c78979 (D3D8/D3D9) Cleanups 2018-05-14 04:55:33 +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 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 5bde17025a Move min_filter_to_mag to gl_common.h 2018-05-13 14:24:49 +02:00
twinaphex 1f944afff7 (GL) Cleanups 2018-05-13 06:34:15 +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 6c09195f5e (D3D8/D3D9) Updates 2018-05-03 22:08:14 +02:00
twinaphex 82ebb9576f Create d3d9_video_t and d3d8_video_t 2018-05-03 22:03:12 +02:00
twinaphex d6c17178a3 Add some logging for shader backend setup 2018-04-23 18:25:41 +02:00
twinaphex 0c4a3a83ce (HLSL) Fix implicit declaration 2018-04-23 15:32:47 +02:00
twinaphex 45cea92ba2 Remove null_renderchain 2018-04-23 14:57:37 +02:00
twinaphex eb69025ca8 Cleanups 2018-04-23 11:30:38 +02:00
twinaphex 04fa4871f0 Create d3d_translate_filter and get rid of duplicate functions 2018-04-22 15:45:11 +02:00
twinaphex 2a655116a6 Set #define CINTERFACE in these files 2018-04-22 14:27:39 +02:00
twinaphex ca8829fe3c (D3D9) Simplifications 2018-04-22 14:00:32 +02:00
twinaphex 4c941d3ada (gl2_renderchain) Try to prevent warning 2018-04-22 12:57:38 +02:00
twinaphex 6d7ffef316 (gl2_renderchain.c) Update 2018-04-21 08:52:38 +02:00
twinaphex df5586570f Make gl2_renderchain_deinit_fbo safer 2018-04-21 08:42:57 +02:00
twinaphex 32b2808fe0 Revert "Turn scaler_ctx_scale_direct into inline function"
This reverts commit d51edd8239.
2018-03-14 23:48:47 +01:00
twinaphex d51edd8239 Turn scaler_ctx_scale_direct into inline function 2018-03-11 18:14:17 +01:00
twinaphex b4a743fff4 Split up menu display drivers for D3D8/D3D9 into separate drivers;
split up d3d_common into separate files
2018-03-03 15:28:58 +01:00
twinaphex 64b36ef5d8 (MSVC) Buildfix for Cg renderchain 2018-03-02 18:32:14 +01:00
twinaphex 588707f543 Cleanups 2018-03-02 17:30:21 +01:00
twinaphex 696fa900a1 Refactor macro functions which were unsafe 2018-02-26 18:08:17 +01:00
twinaphex b67777f664 Update d3d9_hlsl_renderchainc. 2018-02-26 17:52:38 +01:00
twinaphex 5b79d2b942 Refactor video_shader_driver_set_parameters 2018-02-26 17:51:52 +01:00
twinaphex febfc18f0b Silence warning 2018-02-10 23:28:35 +01:00
twinaphex 49bea666ff (D3D9 Cg) Buildfix 2018-02-10 21:23:15 +01:00
twinaphex b141c37fe9 Get rid of set_mvp function in D3D9 renderchain driver - use
one common set_mvp function instead
2018-02-10 21:21:09 +01:00
radius c64d5556c1 readd shader to config, let's use a runtime check instead of overwritting the shader preset all the time 2018-02-07 21:25:59 -05:00
twinaphex 178730891d - Silence more warnings
- Don't include d3dx headers when including cgD3D9
2018-02-03 13:11:31 +01:00
twinaphex d33772195f (D3D9 Cg) CLeanups 2018-01-26 06:50:11 +01:00
twinaphex 8d6aafde95 (D3D9 Cg) Update 2018-01-26 06:36:24 +01:00
twinaphex 9436cc0234 - Add HAVE_HLSL to qb/config.params.sh, set to no by default
- (D3D9 HLSL) Fix build/compilation
2018-01-26 04:09:35 +01:00
twinaphex 6f57aa84a8 Remove unused variable 2018-01-26 04:07:23 +01:00
twinaphex 3adb6cc5a8 CXX_BUILD fixes 2018-01-25 16:42:10 +01:00
twinaphex 204f9aa484 (360) More buildfixes 2018-01-25 15:35:07 +01:00
twinaphex 8f4a1b748b (D3D8/D3D9) More dehardcoding 2018-01-25 14:34:20 +01:00
twinaphex e98b165761 Silence some warnings 2018-01-25 12:38:14 +01:00
twinaphex 282853873b (360) Some buildfixes 2018-01-25 12:35:46 +01:00
twinaphex 766f3b33c7 Dehardcode some more opaque types defined by macros 2018-01-25 11:50:07 +01:00
twinaphex 684374eec8 Remove D3DVIEWPORT dependency 2018-01-25 10:03:50 +01:00
twinaphex 0588c3c68e Don't rely on LPDIRECT3DTEXTURE 2018-01-25 04:28:50 +01:00
twinaphex bc81a9dc88 Dehardcode LPDIRECT3DDEVICE usage 2018-01-25 01:45:03 +01:00
twinaphex 673a190d84 Merge d3d8_renderchain into d3d8.c 2018-01-23 07:18:46 +01:00
twinaphex ce19e7c98a Get rid of unused reinit function and get rid of other
unused stuff in D3D8
2018-01-23 07:00:25 +01:00
twinaphex d28d14079a Create separate D3D8 and D3D9 drivers 2018-01-23 02:55:33 +01:00
twinaphex 1a20fff7f2 Revert "reimplement mvp for D3D8"
This reverts commit f0d47bcd13.
2018-01-22 23:03:02 +01:00
twinaphex f0d47bcd13 reimplement mvp for D3D8 2018-01-22 23:01:20 +01:00
twinaphex e8ff299fd4 Revert "(D3D8) Implement rotation matrix"
This reverts commit ef63b4342c.
2018-01-22 20:54:22 +01:00
twinaphex ef63b4342c (D3D8) Implement rotation matrix 2018-01-22 20:27:53 +01:00
twinaphex 63d9d80d17 Cleanup d3d9_cg_renderchain.c 2018-01-22 08:18:28 +01:00
twinaphex 4a5de7ed6a Use D3D common format functions 2018-01-20 16:45:45 +01:00
twinaphex c106783e85 (XDK1) Now renders RGUI and game frame properly 2018-01-20 06:25:02 +01:00
twinaphex 47f6ff7435 Silence warning 2018-01-19 04:56:10 +01:00
twinaphex 9f45370120 Cleanups 2018-01-19 03:54:07 +01:00
Mahyar Koshkouei 87a7c0f426 Show GL hex error in hex
Fixes an issue whereby a hexadecimal error value was being printed in
decimal.

Tested on a RPi that suffers from issue 6078.

Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-17 17:08:03 +00:00
twinaphex 29098d6b99 Not necessary for D3D8 we believe 2018-01-17 07:45:06 +01:00
twinaphex f1f3a6f0ae Remove some Xbox specific code 2018-01-17 07:37:05 +01:00
aliaspider ebd9430982 (D3D8) can now render content frame, rgui and overlays. 2018-01-17 07:10:45 +01:00
twinaphex f48458d5bd (D3D9) Fix warning 2018-01-17 00:53:47 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
twinaphex c4d3ea6f8d Add want_mipmap function parameter to d3d_texture_new 2018-01-16 09:11:14 +01:00
twinaphex 713de18a04 Revert "Simplify d3d9_cg_renderchain"
This reverts commit 17d1e387de.
2018-01-16 03:29:10 +01:00
twinaphex 0c07dc6f24 Revert "Updates to d3d9_cg_renderchain"
This reverts commit f13148d10e.
2018-01-16 03:28:57 +01:00
twinaphex 1dee2438e6 Revert "(Cg D3D9) Cleanups"
This reverts commit 6c95f389b1.
2018-01-16 03:28:47 +01:00
twinaphex 6c95f389b1 (Cg D3D9) Cleanups 2018-01-16 03:22:13 +01:00
twinaphex f13148d10e Updates to d3d9_cg_renderchain 2018-01-16 03:18:12 +01:00
twinaphex 91e8f7d4db BUildfix 2018-01-16 03:12:38 +01:00
twinaphex 17d1e387de Simplify d3d9_cg_renderchain 2018-01-16 03:09:51 +01:00
twinaphex 7477dd65ff (D3D8) Try to implement set_final_viewport 2018-01-16 02:57:24 +01:00
twinaphex bce0c40b73 (D3D8) Assume we need to set this 2018-01-16 02:32:26 +01:00
twinaphex 734e952457 (D3D8) Try this 2018-01-16 02:26:35 +01:00
twinaphex 8ddcf4d6d7 Let's try this 2018-01-16 02:21:43 +01:00
twinaphex 797f26421a Add MVP code 2018-01-16 01:16:38 +01:00
twinaphex 9d144e28fc Use D3DFVF_XYZ for PC, D3DFVF_XYZRHW for Xbox 2018-01-16 02:04:50 +01:00
twinaphex ae52cd2c68 Fix return type of render_pass 2018-01-16 01:41:16 +01:00
twinaphex 7a281a348e Fix d3d8_renderchain 2018-01-16 01:38:31 +01:00
twinaphex 591e8e22c7 Fix d3d8_renderchain_free 2018-01-16 01:37:07 +01:00
twinaphex 89ee07486a Remove d3d8_renderchain_clear 2018-01-16 01:34:39 +01:00
twinaphex 7ceb107c6a Rewrite d3d8_renderchain.c 2018-01-16 01:30:59 +01:00
twinaphex e32ceb8f30 Rewrite d3d_texture_blit 2018-01-16 00:08:10 +01:00
twinaphex 391fd3eadc Fix CXX_BUILD for D3D 2018-01-15 21:44:49 +01:00
aliaspider 25a7c04a27 (direct3D) fix scaling in the menu display driver. 2018-01-15 03:45:37 +01:00
aliaspider 7b09d5399c (Direct3D) Menu display driver implementation. 2018-01-14 02:21:48 +01:00
twinaphex 88d1e455e3 Add code that allows for debug D3D 2018-01-07 10:46:53 +01:00
twinaphex 942fd7102d Start getting HLSL compiling for PC 2018-01-06 20:48:17 +01:00
twinaphex bd14582465 Update D3D8 codepath 2018-01-04 12:42:51 +01:00
twinaphex efb022bb28 (D3D8 renderchain) Buildfix 2018-01-03 14:46:08 +01:00
twinaphex 947bd80faf d3d8_renderchain_set_vertices - buildfix 2018-01-03 14:06:47 +01:00
twinaphex 2884ad2d73 (360) Some buildfixes 2017-12-31 06:09:39 +01:00
twinaphex 20bb653f1e (Xbox 360) Buildfixes 2017-12-30 12:36:00 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex b1f1f519d5 Don't redefine HAVE_GL_SYNC 2017-12-06 18:28:57 +01:00
twinaphex a53927c5aa Fix PS3 build 2017-12-06 16:53:19 +01:00
ToKe79 6bb2a0e142 GLsync build fix for HAVE_OPENGLES2 2017-12-05 21:58:01 +01:00
twinaphex db4387bd30 See if it's always defined this way 2017-12-05 17:10:31 +01:00
Twinaphex 763e6f766c Silence warning 2017-12-05 16:58:20 +01:00
twinaphex b69622ea88 Avoid usage of GLsync type 2017-12-05 16:56:33 +01:00
twinaphex fafc96d377 Cleanups 2017-12-05 13:31:51 +01:00
Rob Loach e8a9471afd
Fix to ARM to ensure chain has been declared 2017-12-04 18:53:34 -05:00
twinaphex f08b049520 Move more variables 2017-12-04 13:24:27 +01:00
twinaphex 2fd720bcb3 move more variables over 2017-12-04 13:21:23 +01:00
twinaphex 9a8f73fb6c Move variables 2017-12-04 13:18:34 +01:00
twinaphex 48c3a50932 Move more variables 2017-12-04 13:03:14 +01:00
twinaphex f47888aeda Move more variables to renderchain data 2017-12-04 12:50:22 +01:00
twinaphex 19ad9aa1cb Add resolve extensions callback 2017-12-04 12:43:22 +01:00
twinaphex 267e6fe85f Move fence variables to renderchain data struct 2017-12-04 12:02:53 +01:00
twinaphex 072570bbf3 (GL) Update GL1 renderchain too 2017-12-04 11:58:16 +01:00
twinaphex 05ab278aca Pass chain userdata to renderchain driver 2017-12-04 11:54:30 +01:00
twinaphex 4e342956c1 Update comment 2017-12-04 06:13:01 +01:00
twinaphex c869cc5102 Refactor GL code 2017-12-04 05:55:18 +01:00
twinaphex 5a341acb5f Wrap more GL framebuffer functions 2017-12-04 04:57:58 +01:00