Hans-Kristian Arntzen
365dd05557
vkd3d: Add breadcrumbs support.
...
AMD path for this commit.
Idea is that we can automatically instrument markers with command list
information we can make some sense of in vkd3d-proton.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2022-03-11 13:07:56 +01:00
Hans-Kristian Arntzen
3e5aab6fb3
meta: Update version to 2.6.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2022-03-04 16:49:28 +01:00
Georg Lehmann
a078197e16
build: Avoid meson warning.
...
WARNING: You should add the boolean check kwarg to the run_command call.
It currently defaults to false,
but it will default to true in future releases of meson.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
2022-02-11 16:21:52 +01:00
Hans-Kristian Arntzen
55e16539db
meta: Update Meson build version to 2.5.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-10-18 17:31:03 +02:00
Hans-Kristian Arntzen
cafe99e223
meta: Update version to 2.4.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-08 15:06:39 +00:00
David McCloskey
09f5366941
build: clang-cl support for native Windows builds.
...
Signed-off-by: David McCloskey <davmcclo@gmail.com>
2021-05-07 06:41:39 +01:00
Joshua Ashton
3ed3526332
meson: Update to version 2.3.1
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-27 15:03:38 +01:00
Hans-Kristian Arntzen
26584b4d7c
meson: Update to version 2.3.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-04-22 17:28:44 +02:00
Georg Lehmann
0d727274f9
build: Conditionally enable --quiet for glslang.
...
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
2021-04-21 13:01:17 +02:00
Joshua Ashton
ce9ae01c79
build: Warn about VLA usage
...
Using consts for array sizes is a C++-ism, and in GCC in C-mode it won't fold literal constants, and will instead prefer to make a VLA.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-04 15:50:28 +00:00
Joshua Ashton
96888b0663
build: Use --file-alignment=4096 with MinGW
...
Avoids a copy in the Wine loader as well as enables debug symbols to work in perf.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-03 19:22:44 +01:00
Joshua Ashton
47606f4339
build: Rename vkd3d_msvc and vkd3d_clang
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-03 19:22:44 +01:00
Joshua Ashton
78b5b347b8
build: Disable TRACE calls in release builds
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-02 11:09:29 +01:00
Joshua Ashton
615b2d714f
build: Minor meson formatting change
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-02 11:09:29 +01:00
Hans-Kristian Arntzen
dc246a70fc
meson: Bump version to 2.2.
2021-02-19 20:23:10 +01:00
Joshua Ashton
bf2aa9ab99
build: Link against libatomic on x86 when using Clang
...
Needed for 64-bit atomics on 32-bit architectures on Clang.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-16 10:18:26 +01:00
Joshua Ashton
344f75aafd
build: Enable --quiet on glslangValidator
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 11:25:51 +01:00
Joshua Ashton
fccbd3b5e2
vkd3d: Eliminate wchar_size, use UTF-16 string literals
...
Achieves this with C standard stuff alone, and no compiler hacks.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-09 11:26:28 +01:00
Hans-Kristian Arntzen
326d1cde60
vkd3d-shader: Remove DXIL being optional.
...
We always build with DXIL, not using autotools anymore.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-01-25 14:03:37 +01:00
Hans-Kristian Arntzen
d003424bc8
meta: Bump Meson build version to 2.1.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-12-14 12:12:12 +01:00
Hans-Kristian Arntzen
22a907e11a
vkd3d: Add descriptor QA logging.
...
When reading GPU hang dumps, we can figure out what happened to
descriptor types along the way.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-12-09 14:51:53 +01:00
Hans-Kristian Arntzen
60ac9b4d51
Mark version 2.0.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-11-06 17:13:19 +01:00
Joshua Ashton
a18da4560d
build: Fix pkgconfig and install target
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-11-05 17:16:57 +01:00
Georg Lehmann
98f005116b
build: Replace enable_standalone_d3d12 with tristate enable_d3d12.
...
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
2020-11-04 23:38:02 +00:00
Hans-Kristian Arntzen
8cd30ee1c7
build: Rename exposed APIs to reflect vkd3d-proton and update to 2.0.
...
Rename so objects we build so we don't conflict with vkd3d and don't
accidentially attempt to be built against Wine natively (it won't work).
Not quite ready for a 2.0 release yet, but bump the version to reflect
the intent. This creates a new timeline, completely separate from vkd3d.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-28 14:39:09 +01:00
Hans-Kristian Arntzen
336ca7e79f
meson: Enable -Wdeclaration-after-statement
...
Makes it easier to enforce existing coding style.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-28 11:04:06 +01:00
Krzysztof Bogacki
61b13cc278
build: Use separate version string and build hash
...
Version string is used in logging for information purposes, but pipelines blobs and libraries use uint64_t–based commit hash. Using fixed–size integer silences warnings about string length and makes storing build info a little more efficient.
The hash is obtained separately from version string and is shifted to the left by 4 bits if the working tree is dirty.
Signed-off-by: Krzysztof Bogacki <krzysztof.bogacki@leancode.pl>
2020-10-28 10:40:28 +01:00
Joshua Ashton
a991fddeeb
build: Use `-fvisibility=hidden` and define exports manually
...
When building natively on Windows we use dllexport/dllimport for vkd3d/vkd3d_utils public exports.
When building natively on Linux we simply make those visibility default.
Nothing changes for standalone here.
Closes #152
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-10-05 10:44:10 +02:00
Hans-Kristian Arntzen
250357c998
debug: Integrate automatic RenderDoc capturing.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-09-22 12:44:18 +02:00
Hans-Kristian Arntzen
254868a326
vkd3d: Enable pthread workaround paths on MinGW as well.
...
winpthread is slow on Wine as it requires OS synchronization
objects, which involves wineserver.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-09-08 09:34:26 +02:00
Hans-Kristian Arntzen
27d14cb0ce
meson: Target native d3d12 for Windows test binaries.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-30 17:34:10 +02:00
Jens Peters
a0314c4818
build: Use the commit hash as fallback for the built-in version.
...
The `git describe` command currently fails because there are no tags yet. Using `--always` lets it fall back to the current commit hash.
Signed-off-by: Jens Peters <jp7677@gmail.com>
2020-07-30 15:03:06 +02:00
telans
8b6b3f6942
meson: install headers, pkgconfig files
2020-07-22 12:00:06 +02:00
Hans-Kristian Arntzen
99b0421c32
meson: Add build option to enable a profiled build.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-20 16:39:15 +02:00
Hans-Kristian Arntzen
812634b68b
meson: Disable the more useless warnings in MSVC.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-16 13:00:09 +02:00
Andrew Eikum
88e6c9b2dd
build: Drop minimum meson version
...
Debian 10 ships 0.49.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
2020-07-15 00:21:52 +02:00
Joshua Ashton
3fe9dd765d
build: Add stdcall alias/fixup when building x86
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-07 17:44:36 +02:00
Joshua Ashton
cbebf9efed
build: Add build_standalone_d3d12 option
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-06 19:29:30 +02:00
Joshua Ashton
3d52186d3a
build: Move build options to top of build script
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-06 19:29:30 +02:00
Joshua Ashton
10f7ec4ad8
build: Remove -Wno-incompatible-pointer-types
...
No longer needed with recent changes.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton
ec8d14593a
build: Remove -Wno-discarded-qualifiers
...
We don't need this since the CONST_VTBL change.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton
b05371432a
build: Remove -Wno-missing-braces
...
Hold over from autotools that isn't needed.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton
a16afe7c8f
build: Fix checking for xcb when building on Windows
...
It goes unused anyway, just makes Meson fail.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-01 21:31:43 +02:00
Joshua Ashton
bc7aebda33
build: Disable some extra warnings
...
Disabled -Wmissing-field-initializers and -Wunused-parameters
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-29 17:04:56 +02:00
Joshua Ashton
25b40c5df8
build: Only find demo dependencies if building demos
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-29 17:04:56 +02:00
Joshua Ashton
02fca8d190
build: Enable warning level 2
...
Equivelant to -Wall -Wextra
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-27 15:23:09 +02:00
Joshua Ashton
079a012dab
build: Use Meson subproject for dxil-spirv
...
Removes the CMake dependency and solves some trouble building.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-26 18:33:27 +02:00
Joshua Ashton
e46b0ef3c5
build: Add glsl generator to root build script
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-25 13:51:06 +02:00
Joshua Ashton
c79d073b67
build: Fallback to vkd3d-utils if no d3d12 lib is present
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-24 15:27:22 +02:00
Joshua Ashton
161dc007c5
build: Link dxil-spirv statically
...
Don't need to link this in any fancy way
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-24 15:18:56 +02:00