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
twinaphex
44f3341ffe
Add EXT versions for OSX PPC
2017-12-04 04:42:40 +01:00
twinaphex
b2fbb9aeda
Prepare to map DeleteFramebuffersEXT like this
2017-12-04 04:18:28 +01:00
twinaphex
0bf461c40f
Try to get past OSX PowerPC crash on exit
2017-12-04 03:27:03 +01:00
twinaphex
bfd815985f
Rename function callback
2017-11-16 12:02:25 +01:00
twinaphex
721b5f9529
Add set_mvp function callback
2017-11-15 16:51:29 +01:00
twinaphex
b6b6ba9226
No more GL_FF_MATRIX/GL_FF_VERTEX
2017-11-15 14:30:38 +01:00
twinaphex
2ac75f98ae
(renderchain) Start implementing set_coords/set_mvp
2017-11-15 14:02:41 +01:00
twinaphex
229841b1c4
Create video_driver_set_coords
2017-11-14 21:43:13 +01:00
twinaphex
41daddfe1c
Create video_driver_set_mvp
2017-11-14 21:22:44 +01:00
twinaphex
87c82797fd
Start cutting down on macro usage
2017-11-13 10:26:56 +01:00
twinaphex
e5ed1acc0a
(gl1_renderchain.c) Cleanups
2017-11-13 08:58:49 +01:00
twinaphex
ec123ef6ca
Get rid of most of the HAVE_FBO usage
2017-11-13 06:20:30 +01:00
twinaphex
6fa5fcfa1f
Add has_fbo member variable - fixes GL issues
2017-11-13 05:23:44 +01:00
twinaphex
9c791e7fb5
CLeanups
2017-11-12 17:45:23 +01:00
twinaphex
60d96b60b5
Start adding gl1_renderchain.c
2017-11-12 17:32:18 +01:00
twinaphex
c5292025c3
Cut down on HAVE_FBO usage and make sure gl->fbo_inited is set to
...
false if HAVE_FBO is not defined
2017-11-12 17:15:29 +01:00
twinaphex
063fc96736
Use gl_bind_texture
2017-11-10 04:28:22 +01:00
twinaphex
b3d8146009
Try to fix PS3 build
2017-11-10 02:19:25 +01:00
twinaphex
a4c9c738b8
Add init_textures_reference
2017-11-08 22:06:10 +01:00
twinaphex
4f016b2c2c
Update
2017-11-08 19:31:00 +01:00
twinaphex
3e0b4552d6
Cleanups
2017-11-08 18:49:45 +01:00
twinaphex
5f7527df08
Move readback function to renderchain
2017-11-08 18:45:28 +01:00
twinaphex
d6cc447aa0
Add PBO callback functions
2017-11-08 18:22:05 +01:00
twinaphex
9f987dd97b
Get rid of NO_GL_READ_PIXELS
2017-11-08 17:42:02 +01:00
twinaphex
4b0932ffb3
Move copy_frame to renderchain
2017-11-08 16:38:56 +01:00
twinaphex
a295169a3b
Add restore_default_state callback - remove more ifdefs
2017-11-08 16:20:55 +01:00
twinaphex
308818afd1
Add VAO callback functions
2017-11-08 16:16:17 +01:00
twinaphex
a72461c16b
Create disable_client_arrays function pointer
2017-11-08 05:44:12 +01:00
twinaphex
bd1f04554e
Implement ff_matrix/ff_vertex
2017-11-08 05:06:19 +01:00
twinaphex
dc664ff4f2
Cleanups
2017-11-08 01:53:24 +01:00
twinaphex
c1f0fceb4f
More buildfixes
2017-11-08 00:59:16 +01:00
twinaphex
e7599e8952
More buildfixes
2017-11-08 00:55:38 +01:00
twinaphex
0085b24fd5
Cut down on gl_check_capability calls
2017-11-08 00:49:01 +01:00
twinaphex
0f6a3c8f9d
Start cutting down on HAVE_GL_ASYNC_READBACK ifdef
2017-11-07 23:19:54 +01:00
twinaphex
1bc30331a7
Cleanups
2017-11-07 22:59:36 +01:00
twinaphex
7a33bfe924
Get rid of more HAVE_FBO ifdefs
2017-11-07 22:54:38 +01:00
twinaphex
3ccf8c19f1
Start getting rid of HAVE_FBO ifdefs
2017-11-07 21:34:25 +01:00
twinaphex
0100e7b673
Update
2017-11-07 21:08:54 +01:00
twinaphex
fc43a14637
Updates
2017-11-07 21:03:29 +01:00
twinaphex
fe2bf47b98
Add more to renderchain driver
2017-11-07 20:56:08 +01:00
twinaphex
00d52a4783
Cleanups
2017-11-07 11:06:18 +01:00
twinaphex
a7cd8d94b0
Start going through renderchain driver interface for GL
2017-11-07 11:01:30 +01:00
twinaphex
9c6edaff30
Update renderchain driver for GL
2017-11-07 10:10:52 +01:00
twinaphex
7d2e9290e2
Convert another file to C
2017-11-06 19:49:06 +01:00
orbea
10032affcb
Fix compile with --disable-fbo.
...
Fixes https://github.com/libretro/RetroArch/issues/5647
2017-11-04 07:47:03 -07:00
twinaphex
6c262fe44f
Convert to C
2017-10-03 02:49:06 +02:00
twinaphex
d23d742439
Convert d3d9_cg_renderchain to C
2017-10-03 02:45:06 +02:00
Brad Parker
2bb20a0b4f
add generic vector_list for custom types, use it to remove std::vector from D3D9 Cg renderchain
2017-10-02 19:19:12 -04:00
twinaphex
8aef6dff1c
Convert d3d8_renderchain to C
2017-10-02 21:39:35 +02:00
twinaphex
9abd790353
Remove some more D3DX dependencies
2017-10-02 20:18:36 +02:00
twinaphex
bceb8000dd
Use replacement D3DXMatrix functions
2017-10-02 19:01:23 +02:00
twinaphex
5ef6de4d4e
C codepath for D3D9 works now
2017-10-02 03:52:53 +02:00
twinaphex
cf9147ff66
Remove <string> include
2017-10-02 01:40:20 +02:00
twinaphex
95d035883c
Create d3d_surface_lock_rect
2017-10-02 00:45:33 +02:00
twinaphex
0559be4e72
Create d3d_device_create_offscreen_plain_surface
2017-10-02 00:38:05 +02:00
twinaphex
ebe5f65893
Create d3d_device_get_render_target_data
2017-10-02 00:21:06 +02:00
twinaphex
d960cc8c0f
(D3D) Cleanups
2017-10-01 23:22:35 +02:00
twinaphex
8b1ae9427e
Create d3d_device_set_render_target
2017-10-01 23:19:44 +02:00
twinaphex
30af756969
Create d3d_device_get_render_target
2017-10-01 22:38:30 +02:00
twinaphex
563024502f
Create d3d_surface_free
2017-10-01 22:28:48 +02:00
twinaphex
ff40cba3de
Create d3d_vertex_declaration_free - wrap more D3D functions
2017-10-01 22:23:28 +02:00
twinaphex
105b98b837
Rename gl_legacy_renderchain to gl2_renderchain
2017-09-19 15:06:49 +02:00
twinaphex
2fb68c7007
(D3D9 HLSL) Cleanups
2017-09-19 15:02:51 +02:00
twinaphex
0ddc349557
(D3D9 HLSL) Cleanups
2017-09-19 14:58:56 +02:00
twinaphex
52970c773b
Cleanup
2017-09-19 14:55:18 +02:00
twinaphex
88b593e4af
(360) Builds again(360) Builds again(360) Builds again(360) Builds
...
again(360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again
2017-09-13 04:33:43 +02:00
twinaphex
170b368044
(360) Some buildfixes
2017-09-13 04:21:00 +02:00
twinaphex
582b688121
Silence some warnings for PS3
2017-09-06 00:21:20 +02:00
twinaphex
674dbfed19
Cleanups
2017-09-05 04:57:34 +02:00
twinaphex
bde5a6dc19
Rename renderchain_driver_t to d3d_renderchain_driver_t
2017-09-05 04:21:40 +02:00
twinaphex
21d3e890f8
Cleanup
2017-09-05 04:16:27 +02:00
twinaphex
97d7240c47
Cleanups
2017-09-05 04:08:44 +02:00
twinaphex
1c6314f1ff
Cleanups
2017-09-05 03:51:20 +02:00
twinaphex
057444433d
Cleanups
2017-09-05 03:42:39 +02:00
twinaphex
3eecbd7135
Fix d3d9_cg_renderchain.cpp
2017-09-05 03:27:00 +02:00
twinaphex
374b6115e1
Update HLSL backend
2017-09-05 03:21:58 +02:00
twinaphex
83ffb5092a
Cleanups
2017-09-05 03:00:51 +02:00
twinaphex
c691bbaedc
Start going through compilation errors
2017-09-05 00:57:58 +02:00
twinaphex
fb5744318a
Start adding D3D8 headers
2017-09-05 00:37:17 +02:00
twinaphex
b46c4b4db5
Create d3d8_renderchain.cpp and d3d9_hlsl_renderchain.cpp
2017-09-05 00:00:17 +02:00
twinaphex
c96b843330
xdk_renderchain.cpp should become the D3D8 renderchain implementation
...
(for Xbox OG/PC);
xdk360_renderchain.cpp will become the D3D9 HLSL one (for 360/PC)
2017-09-04 23:50:13 +02:00
twinaphex
b11620e1eb
Add retro_timers.h/retro_math.h
2017-06-28 04:41:38 +02:00
twinaphex
c7ac70a923
Combine video_renderchain_driver.c and video_driver.c
2017-06-12 15:45:58 +02:00
twinaphex
59b3344e72
Combine video_driver.c and video_shader_driver.c
2017-05-18 14:47:24 +02:00
twinaphex
126a5bf121
Use string_is_equal_fast/string_is_not_equal_fast
2017-05-16 04:00:37 +02:00
twinaphex
0da40fb3aa
Move all float settings
2017-04-28 14:57:55 +02:00
twinaphex
cc095e56fc
Start refactoring bool variables
2017-04-28 00:53:20 +02:00
twinaphex
e411e7c284
Add separate PI macro
2017-04-24 10:31:25 +02:00
twinaphex
087002d9c5
Get rid of unused video_driver_get_frame_count - locking/unlocking
...
around this variable should no longer be necessary
2017-04-23 21:39:49 +02:00
twinaphex
637b26772c
Directly initialize some variables
2017-04-20 09:46:03 +02:00
twinaphex
96a9730a08
Cleanups
2017-04-20 09:15:56 +02:00
twinaphex
d1ff5dd973
Header include cleanups
2017-04-20 09:14:20 +02:00
twinaphex
d4ecc6398d
(d3d9_cg_renderchain.cpp) Fix header includes
2017-04-19 16:11:00 +02:00
twinaphex
ca6eee21d9
Add header include for null_renderchain.c
2017-04-19 12:37:54 +02:00
twinaphex
0a33e6e8e4
Fix relative path header includes
2017-04-19 02:17:34 +02:00
twinaphex
b15cca82c7
Fix some relative path header includes
2017-04-19 02:15:47 +02:00
twinaphex
5bfc513af4
Buildfixes
2017-04-19 02:03:01 +02:00
twinaphex
00a59629aa
Silence some more warnings
2017-04-19 01:57:00 +02:00
twinaphex
7790fc3647
MOve renderchain files to dir
2017-04-19 01:51:05 +02:00