Commit Graph

60 Commits

Author SHA1 Message Date
Julian Sikorski
ba6f5853e9
Cherry-pick wayland improvements from upstream bgfx (#13070)
* Properly support Wayland under EGL and Vulkan. (#3358)

* Dynamically load libwayland-egl.so.1 when dealing with Wayland to remove dependencies at program startup. (#3359)

* Cleanup.

* Support both X11 and Wayland in the same build. (#3360)

* Support both X11 and Wayland in the same build.

 - Works for both Vulkan and OpenGL.
 - Remove --with-wayland from genie options.
 - Vulkan loads all three extensions for surface creation instead of only one.
 - Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create
   a SwapChain with the given window size.
 - Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then
   recreating to make sure the window is released of its swapchain.
 - Fix dbgText glitch in example-22-windows.
 - Remove old X11-related dependencies for GLFW3.

* Formatting.

* Adapt to latest bgfx wayland code

* Cleanup.

* Fix Vulkan swapchain invalidation issue. (#3379)

* Fix Vulkan swapchain invalidation issue.

* Always clamp render pass to frame buffer size.

* Fix formatting.

* Hopefully fix macOS build

* Hopefully fix macOS build, attempt 2

---------

Co-authored-by: Martijn Courteaux <courteauxmartijn@gmail.com>
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2025-01-02 13:50:37 +01:00
Julian Sikorski
80155dfa8c
3rdparty/bgfx: Cherry-picked upstream commits needed to support Wayland on Linux. (#11539) 2023-09-29 01:14:29 +10:00
Vas Crabb
44eb5ea3c6 Revert "Updated bgfx, bx and bimg to current upstream versions. (#11493)"
This reverts commit 1c61ccfe84.
2023-09-08 05:14:35 +10:00
Julian Sikorski
1c61ccfe84
Updated bgfx, bx and bimg to current upstream versions. (#11493)
* Reverted "macOS, iOS: Removed OpenGL/OpenGLES support. (commit 4693983242a698eaafed87faf4ffef1789adc8f9).
* Reverted "Fix macOS build" (commit ce2c2c13eda7d699051f75f598e740a447343a88).
* Reverted "macOS: Fixed deprecated warnings." (commit 10a8cb61f882ebc9bb376ee2341d003880b7037f).
* Added bgfx/README.mame explaining deviations from upstream.
2023-09-06 01:10:24 +10:00
Olivier Galibert
b733fd4b43 gcc: prevent use-after-free warning. 2023-02-22 09:13:03 +01:00
Miodrag Milanović
812e6094f4
Update BGFX, BX and BIMG (#10789)
* Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2023-01-05 09:32:40 -05:00
R. Belmont
94b1e168b2
Revert "Update BGFX, BX and BIMG (#10750)" (#10787)
This reverts commit 5581eaa50a due to link failure on macOS.
2023-01-04 23:29:18 -05:00
Miodrag Milanović
5581eaa50a
Update BGFX, BX and BIMG (#10750)
* Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2023-01-04 23:12:10 -05:00
Julian Sikorski
0eeb918991
Update bgfx, bx and bimg to latest upstream (fixes issue #8057) (#8645) 2021-10-02 12:21:12 -04:00
Бранимир Караџић
1a6a018fc3 Update bgfx to latest 2021-08-10 20:28:56 +02:00
Julian Sikorski
0c70101b74 Sync bgfx, bx and bimg with upstream; fix the hlsl fs_chroma.sc matrix transposition properly (#5875)
* Sync bgfx with upstream revision 280420d

* Sync bx with upstream revision 267727d

* Sync bimg with upstream revision c1bab10

* Use bgfx helper functions to ensure correct matrix orientation

* Rebuild hlsl chain
2019-11-12 22:08:23 -05:00
Julian Sikorski
0837e7451a WIP: sync bgfx, bx and bimg with latest upstream (#5723)
* Sync with bgfx upstream revision b91d0b6

* Sync with bx upstream revision d60912b

* Sync with bimg upstream revision bd81f60

* Add astc-codec decoder

* Rename VertexDecl to VertexLayout

* Rename UniformType enum Int1 to Sampler.

* Add NVN stub

* Fix unused-const-variable error on macOS

* Drop redundant explicit language parameters
buildoptions_cpp are only applied to c++ files and buildoptions_objcpp are only
applied to objective c++ files. As such, hardcoding -x offers no benefit while
preventing overrides (such as one needed by 3rdparty/bgfx/src/renderer_vk.cpp on
macOS) from working.

* Re-introduce -x c++ in places where C code is compiled as C++ to prevent clang from throwing a warning

* Build bgfx as Objective-C++ on macOS
It is needed due to included headers

* Enable Direct3D12 and Vulkan bgfx rendering backends

* Enable building of spirv shaders

* Properly escape /c in cmd call

* Comment out dx12 bgfx renderer

* Honor VERBOSE setting during shaders build

* Only invert hlsl shader XYZ_TO_sRGB matrix for opengl

* Add spirv shaders

* OpenGL ES needs transposed matrix too

* Metal needs transposed matrix as well
2019-10-13 07:50:38 -04:00
mooglyguy
0bd02131b6 3rdparty: Updated bgfx, bimg, and bx to latest upstream. [Ryan Holtz] 2018-12-05 19:45:08 +01:00
Miodrag Milanovic
3917627494 Updated GENie, BGFX, BX, added BIMG since it is separated now, updated all shader binaries and MAME part of code to support new interfaces [Miodrag Milanovic] 2017-12-01 13:22:27 +01:00
Branimir Karadžić
49f7c99c77 Update BGFX and BX (nw) 2017-03-29 17:09:40 +02:00
Branimir Karadžić
1607745432 Update BGFX and BX (nw) 2017-02-05 13:56:35 +01:00
Branimir Karadžić
fadb547f63 Updated BGFX (nw) 2017-01-02 14:05:50 +01:00
Branimir Karadžić
a3b4058bf7 Updated BGFX and BX and recompiled shaders (nw) 2016-10-29 09:11:50 +02:00
Miodrag Milanovic
d193abb0ad Update BGFX and BX packages and update MAME code to support new API (nw)
Generated missing shaders (nw)
2016-09-03 13:30:42 +02:00
Miodrag Milanovic
cf9502a61c Synced BGFX so it can compile with clang 4.0 (nw) 2016-08-09 09:04:30 +02:00
Miodrag Milanovic
3917850b61 Update BX and BGFX (nw) 2016-08-06 14:20:16 +02:00
Miodrag Milanovic
a3af73bafc BGFX and BX update (nw) 2016-06-08 20:42:23 +02:00
Miodrag Milanovic
913861105b Update BGFX and BX (nw) 2016-05-27 20:57:02 +02:00
Miodrag Milanovic
71379c5648 Sync with BGFX (nw) 2016-05-16 14:17:04 +02:00
Miodrag Milanovic
2fe2089179 Update BGFX, BX, Benchmark and RapidJSON (nw) 2016-05-12 08:42:02 +02:00
Branimir Karadžić
f97b68d3ed Update GENie, BGFX and BX (nw) 2016-05-03 12:20:29 +02:00
Branimir Karadžić
94c7dd996b Update BGFX and BX (nw) 2016-04-27 17:57:45 +02:00
Branimir Karadžić
cceb3a32b7 Update to latest BGFX (nw) 2016-04-10 09:16:09 +02:00
Miodrag Milanovic
0386367805 Update BGFX (nw) 2016-04-07 11:10:57 +02:00
Branimir Karadžić
e63f379a0e Update BGFX to latest (nw) 2016-04-04 13:52:25 +02:00
Branimir Karadžić
4172b54d84 Update BGFX and BX (nw) 2016-03-31 20:39:30 +02:00
Branimir Karadžić
fae7a2c486 Update to latest BGFX and BX(nw) 2016-03-20 16:50:14 +01:00
Branimir Karadžić
6412c5e076 Update BGFX and BX (nw) 2016-03-08 12:58:10 +01:00
Miodrag Milanovic
30ef0dc427 Update to latest BGFX including my SteamLink support (nw) 2016-02-16 07:52:59 +01:00
Branimir Karadžić
a8c8ec182f Update BGFX with latest code (nw) 2016-02-09 14:27:17 +01:00
Branimir Karadžić
5bc83a2506 Update BGFX (nw) 2016-02-07 09:50:16 +01:00
Branimir Karadzic
fc07cc3621 Added latest BX and BGFX (nw) 2016-01-04 19:00:51 +01:00
Branimir Karadzic
5664971d3b update to latest BGFX and BX 2015-11-01 20:30:24 +01:00
Miodrag Milanovic
8981faa61f update bgfx to latest (nw) 2015-10-15 10:42:29 +02:00
Miodrag Milanovic
7ca8f88a5c Added latest BGFX (nw) 2015-09-12 10:23:53 +02:00
Miodrag Milanovic
a163b28277 Update BGFX (nw) 2015-05-27 12:07:35 +02:00
Miodrag Milanovic
2b97bfba29 update to latest 3rdparty, rollback of genie change (nw) 2015-04-16 14:16:14 +02:00
Miodrag Milanovic
d4a431f0ea latest BGFX (nw) 2015-04-08 15:13:38 +02:00
Miodrag Milanovic
26214cc6ec Update to latest bgfx and fix for latest mingw releases (nw) 2015-04-01 12:45:19 +02:00
Miodrag Milanovic
df90d5068a Update to latest 3rdparty, fixes issues on OpenGL 2.1 for bgfx (nw) 2015-03-31 08:17:12 +02:00
Miodrag Milanovic
fadbc9808c Updated to latest 3rdparty (nw) 2015-03-30 14:36:33 +02:00
Miodrag Milanovic
522a6d8c30 updated to latest 3rdparty 2015-03-26 08:14:29 +01:00
Miodrag Milanovic
43f92ea260 update 3rdparty (nw) 2015-03-19 08:40:37 +01:00
Miodrag Milanovic
7afcb3a206 compile fix 2015-03-17 11:10:58 +01:00
Miodrag Milanovic
c14b700825 Sync with latest (nw) 2015-03-17 11:08:12 +01:00