Commit graph

65 commits

Author SHA1 Message Date
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
Miodrag Milanovic
3fff3faf6c proper fix (nw) 2017-03-30 08:36:15 +02:00
Vas Crabb
ced3087742 assume LLVM libc++ if __llvm__ is defined but __GLIBC__ is undefined 2017-03-30 16:29:33 +11:00
dankan1890
b7adbf5438 VS fix. (nw) 2017-03-29 22:25:54 +02:00
Miodrag Milanovic
0921d7aaae 2nd try (nw) 2017-03-29 18:14:35 +02: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
yz70s
487cd9395c bx: fix some mistakes that have already been corrected in upstream (nw)
Same as e0936a0278
2017-01-16 18:47:49 +01:00
Branimir Karadžić
04faaaf7ff Update BX (nw) 2017-01-02 14:04:09 +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
3917850b61 Update BX and BGFX (nw) 2016-08-06 14:20:16 +02:00
Jordi Mallach
e1464ffd64 Support GNU/Hurd systems. 2016-07-26 01:55:39 +02:00
Steven Chamberlain
ef8816ae18 bx: sync with upstream 2016-07-14 18:31:16 +01:00
Steven Chamberlain
6256946dee bx: further refactor #ifdefs
Trying to evaluate __GLIBC__ will result in an error if is not defined,
if the preprocessor does not short-cut the evaluation.

Split the macros onto separate lines and define the result in a new
BX_USE_GLIBC_PTHREAD_SETNAME_NP macro to avoid duplication.
2016-07-13 14:48:02 +01:00
Steven Chamberlain
423097c40f bx: refactor #ifdefs
Fix potential compilation error by ensuring __GLIBC__ is only evaluated
when actually defined.

When __GLIBC__ is defined, we do not need any additional headers on BSD
platforms (hence why using #elif).
2016-07-13 14:15:39 +01:00
Steven Chamberlain
f2ad7351ef bx: support glibc-based BSD platforms
On GNU/kFreeBSD, pthread_setname_np can be found in glibc's pthread.h
(same as on GNU/Linux).  pthread_np.h does not exist there.
2016-07-13 13:31:03 +01:00
Steven Chamberlain
8fb0ab46bb bx: use system signal.h on glibc systems
On GNU/kFreeBSD, sys/signal.h is only a wrapper around glibc signal.h
anyway, leading to a #include loop in this case.
2016-07-13 13:14:15 +01:00
Steven Chamberlain
c904fc121c bx: use real alloca.h on glibc systems
On GNU/kFreeBSD, the definition for alloca() can be found in the
system alloca.h
2016-07-13 12:25:55 +01: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
Miodrag Milanovic
f89adf8b07 update flags for tools (nw) 2016-04-29 08:37:29 +02:00
Branimir Karadžić
94c7dd996b Update BGFX and BX (nw) 2016-04-27 17:57:45 +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
Vas Crabb
503ae769d1 malloc.h is nonstandard, malloc/realloc/free are in stdlib.h 2016-02-08 13:41:39 +11: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
Thomas Klausner
79fb7f4778 bx: add NetBSD support.
I've filed a more complete patch for this upstream:

https://github.com/bkaradzic/bx/pull/61

but this has been ignored since June. This patch is the minimal
set to fix the build on NetBSD.
2015-11-13 14:30:25 +01:00
Branimir Karadzic
5664971d3b update to latest BGFX and BX 2015-11-01 20:30:24 +01:00
Vas Crabb
79ae956643 Fix bx/bgfx on older OSX
Submitted upstream for consideration: https://github.com/bkaradzic/bx/pull/77
2015-10-31 19:34:52 +11:00
Miodrag Milanovic
a74a7a37ef updated bx (nw) 2015-10-15 10:41:35 +02:00
Thomas Klausner
b3ff7bd936 Re-add NetBSD support to bx. 2015-10-05 23:31:59 +03:00
Thomas Klausner
4206253e65 Add NetBSD support to bx.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2015-10-02 09:57:01 +02:00
jbu
fee651e0dd bx: use pthread_setname_np(3) only with __GLIBC__ 2015-10-01 13:37:33 +02:00
Miodrag Milanovic
6d06509293 Added latest BX (nw) 2015-09-12 10:22:55 +02:00
Thomas Klausner
24bfd3e8e8 Add NetBSD support to bx.
Will try sending this upstream as well.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2015-07-14 21:52:03 +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