Skip to content

Commit d5e2d46

Browse files
authored
Upgrade bgfx. (#16)
1 parent b76378c commit d5e2d46

File tree

314 files changed

+52860
-17837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+52860
-17837
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
path: ./.zigversion
5555
- name: Install Zig
56-
uses: mlugg/setup-zig@v1
56+
uses: mlugg/setup-zig@v2
5757
with:
5858
version: ${{ steps.zigversion.outputs.content }}
5959

@@ -89,7 +89,7 @@ jobs:
8989
with:
9090
path: ./.zigversion
9191
- name: Install Zig
92-
uses: mlugg/setup-zig@v1
92+
uses: mlugg/setup-zig@v2
9393
with:
9494
version: ${{ steps.zigversion.outputs.content }}
9595

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Minimal is `0.14.0`. But you know try your version and believe.
4141

4242
## Bgfx version
4343

44-
- [BX](https://github.com/bkaradzic/bx//compare/01c99ddd0912c5ecf56d9522f287c6c67aa3ad14...master)
45-
- [BImg](https://github.com/bkaradzic/bimg/compare/c5c7b6e1874cf60caa18b643391f5122f89a4ca8...master)
46-
- [BGFX](https://github.com/bkaradzic/bgfx/compare/de56398919b875b27b629c0b62f119c338c081d8...master)
44+
- [BX](https://github.com/bkaradzic/bx//compare/d858859d1724fc037129318330f9c5ee5e008a08...master)
45+
- [BImg](https://github.com/bkaradzic/bimg/compare/446b9eb11130821fd11607c2fc94aee80976e56a...master)
46+
- [BGFX](https://github.com/bkaradzic/bgfx/compare/14e0aa5aff65a12df621fbc9466b42d41d01f013...master)
4747

4848
## Getting started
4949

build.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,6 @@ const spirv_opt_files = .{
786786
spirv_opt_path ++ "source/binary.cpp",
787787
spirv_opt_path ++ "source/diagnostic.cpp",
788788
spirv_opt_path ++ "source/disassemble.cpp",
789-
spirv_opt_path ++ "source/enum_string_mapping.cpp",
790789
spirv_opt_path ++ "source/ext_inst.cpp",
791790
spirv_opt_path ++ "source/extensions.cpp",
792791
spirv_opt_path ++ "source/libspirv.cpp",
@@ -914,6 +913,8 @@ const spirv_opt_files = .{
914913
spirv_opt_path ++ "source/opt/wrap_opkill.cpp",
915914
spirv_opt_path ++ "source/opt/opextinst_forward_ref_fixup_pass.cpp",
916915
spirv_opt_path ++ "source/opt/struct_packing_pass.cpp",
916+
spirv_opt_path ++ "source/opt/split_combined_image_sampler_pass.cpp",
917+
spirv_opt_path ++ "source/opt/resolve_binding_conflicts_pass.cpp",
917918
spirv_opt_path ++ "source/parsed_operand.cpp",
918919
spirv_opt_path ++ "source/print.cpp",
919920
spirv_opt_path ++ "source/reduce/change_operand_reduction_opportunity.cpp",
@@ -954,6 +955,7 @@ const spirv_opt_files = .{
954955
spirv_opt_path ++ "source/spirv_target_env.cpp",
955956
spirv_opt_path ++ "source/spirv_validator_options.cpp",
956957
spirv_opt_path ++ "source/table.cpp",
958+
spirv_opt_path ++ "source/table2.cpp",
957959
spirv_opt_path ++ "source/text.cpp",
958960
spirv_opt_path ++ "source/text_handler.cpp",
959961
spirv_opt_path ++ "source/util/bit_vector.cpp",
@@ -1004,4 +1006,6 @@ const spirv_opt_files = .{
10041006
spirv_opt_path ++ "source/val/validate_type.cpp",
10051007
spirv_opt_path ++ "source/val/validation_state.cpp",
10061008
spirv_opt_path ++ "source/val/validate_tensor_layout.cpp",
1009+
spirv_opt_path ++ "source/val/validate_tensor.cpp",
1010+
spirv_opt_path ++ "source/val/validate_invalid_type.cpp",
10071011
};

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .zbgfx,
33
.fingerprint = 0xc48ed871c4086e4a,
4-
.version = "0.3.0",
4+
.version = "0.4.0",
55
.paths = .{
66
"includes",
77
"libs",

libs/bgfx/3rdparty/glslang/SPIRV/GLSL.ext.KHR.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,8 @@ static const char* const E_SPV_KHR_subgroup_rotate = "SPV_KHR_subgr
6363
static const char* const E_SPV_KHR_expect_assume = "SPV_KHR_expect_assume";
6464
static const char* const E_SPV_EXT_replicated_composites = "SPV_EXT_replicated_composites";
6565
static const char* const E_SPV_KHR_relaxed_extended_instruction = "SPV_KHR_relaxed_extended_instruction";
66+
static const char* const E_SPV_KHR_integer_dot_product = "SPV_KHR_integer_dot_product";
67+
static const char* const E_SPV_NV_cooperative_vector = "SPV_NV_cooperative_vector";
68+
static const char* const E_SPV_KHR_bfloat16 = "SPV_KHR_bfloat16";
6669

6770
#endif // #ifndef GLSLextKHR_H

libs/bgfx/3rdparty/glslang/SPIRV/GLSL.ext.NV.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
#ifndef GLSLextNV_H
2828
#define GLSLextNV_H
2929

30-
enum BuiltIn;
31-
enum Decoration;
32-
enum Op;
33-
enum Capability;
30+
enum class BuiltIn : unsigned;
31+
enum class Decoration : unsigned;
32+
enum class Op : unsigned;
33+
enum class Capability : unsigned;
3434

3535
static const int GLSLextNVVersion = 100;
3636
static const int GLSLextNVRevision = 11;
@@ -96,4 +96,9 @@ const char* const E_SPV_NV_tensor_addressing = "SPV_NV_tensor_addressing";
9696
//SPV_NV_cooperative_matrix2
9797
const char* const E_SPV_NV_cooperative_matrix2 = "SPV_NV_cooperative_matrix2";
9898

99+
//SPV_NV_cluster_acceleration_structure
100+
const char* const E_SPV_NV_cluster_acceleration_structure = "SPV_NV_cluster_acceleration_structure";
101+
102+
//SPV_NV_linear_swept_spheres
103+
const char* const E_SPV_NV_linear_swept_spheres = "SPV_NV_linear_swept_spheres";
99104
#endif // #ifndef GLSLextNV_H

libs/bgfx/3rdparty/glslang/SPIRV/GLSL.ext.QCOM.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
#ifndef GLSLextQCOM_H
2828
#define GLSLextQCOM_H
2929

30-
enum BuiltIn;
31-
enum Decoration;
32-
enum Op;
33-
enum Capability;
30+
enum class BuiltIn : unsigned;
31+
enum class Decoration : unsigned;
32+
enum class Op : unsigned;
33+
enum class Capability : unsigned;
3434

3535
static const int GLSLextQCOMVersion = 100;
3636
static const int GLSLextQCOMRevision = 1;
@@ -40,4 +40,7 @@ const char* const E_SPV_QCOM_image_processing = "SPV_QCOM_image_processing";
4040
//SPV_QCOM_image_processing2
4141
const char* const E_SPV_QCOM_image_processing2 = "SPV_QCOM_image_processing2";
4242

43+
//SPV_QCOM_tile_shading
44+
const char* const E_SPV_QCOM_tile_shading = "SPV_QCOM_tile_shading";
45+
4346
#endif // #ifndef GLSLextQCOM_H

0 commit comments

Comments
 (0)