diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-06-04 21:56:05 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-06-04 21:56:05 +0200 |
commit | 4ed086be0a77a624b252f77263e3241b85f5727f (patch) | |
tree | 3423ab298383a60cab719e92691b94101a2d0306 | |
parent | 7ec394db8961009e6ac23fea909f8353d865f7a3 (diff) |
-rw-r--r-- | .bazelrc | 4 | ||||
-rw-r--r-- | MODULE.bazel | 7 | ||||
-rw-r--r-- | MODULE.bazel.lock | 15 | ||||
-rw-r--r-- | hk21/game/gpu.cpp | 6 |
4 files changed, 15 insertions, 17 deletions
@@ -1,5 +1,5 @@ -common --registry=https://bcr.bazel.build
-common --registry=https://git.stevenlr.com/460nm/bazel-registry.git/plain/
+common --registry=https://bcr.bazel.build/
+common --registry=https://bazel.stevenlr.com/registry/
build --enable_platform_specific_config
diff --git a/MODULE.bazel b/MODULE.bazel index 46b251c..8389249 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -11,12 +11,7 @@ bazel_dep(name = "rules_cc", version = "0.1.1") cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
use_repo(cc_configure, "local_config_cc")
-bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
-git_override(
- module_name = "hedron_compile_commands",
- remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
- commit = "4f28899228fb3ad0126897876f147ca15026151e",
-)
+bazel_dep(name = "hedron_compile_commands", version = "0.1.0", dev_dependency = True)
bazel_dep(name = "sdl3_windows", version = "3.2.6")
bazel_dep(name = "asl", version = "0.4.0")
diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 8bb3b0a..2563aac 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,13 @@ { "lockFileVersion": 18, "registryFileHashes": { + "https://bazel.stevenlr.com/registry/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", + "https://bazel.stevenlr.com/registry/modules/asl/0.4.0/MODULE.bazel": "767046b78b3dfeec294ab47800d20d2c3220f6d29aca915fef12868305d4b7eb", + "https://bazel.stevenlr.com/registry/modules/asl/0.4.0/source.json": "191cd1a3fd046480ee4f68f6c98566eec1210c4ab358c8d204f5284400ec267c", + "https://bazel.stevenlr.com/registry/modules/hedron_compile_commands/0.1.0/MODULE.bazel": "5623ba8f732a01246c388bccebf924357e452314a178f179d3b375b623d5a359", + "https://bazel.stevenlr.com/registry/modules/hedron_compile_commands/0.1.0/source.json": "c55f6caa3eb9fb027af66949c23ca537214eb32b0316ae95bcc496f3cd8406b9", + "https://bazel.stevenlr.com/registry/modules/sdl3_windows/3.2.6/MODULE.bazel": "857507d99ce37f1a4cb331a7888cec8511f38b0bfd46adb55d1b70a9cbe4e86f", + "https://bazel.stevenlr.com/registry/modules/sdl3_windows/3.2.6/source.json": "5196961bbdfc230463ce7ea9049f7bab62b5ea7bccbfd376b85d07b2f909f98b", "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", "https://bcr.bazel.build/modules/abseil-cpp/20211102.0/MODULE.bazel": "70390338f7a5106231d20620712f7cccb659cd0e9d073d1991c038eb9fc57589", @@ -40,6 +47,7 @@ "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/source.json": "41e9e129f80d8c8bf103a7acc337b76e54fad1214ac0a7084bf24f4cd924b8b4", "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", + "https://bcr.bazel.build/modules/hedron_compile_commands/0.1.0/MODULE.bazel": "not found", "https://bcr.bazel.build/modules/jsoncpp/1.9.5/MODULE.bazel": "31271aedc59e815656f5736f282bb7509a97c7ecb43e927ac1a37966e0578075", "https://bcr.bazel.build/modules/jsoncpp/1.9.5/source.json": "4108ee5085dd2885a341c7fab149429db457b3169b86eb081fa245eadf69169d", "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", @@ -140,12 +148,7 @@ "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.3/MODULE.bazel": "af322bc08976524477c79d1e45e241b6efbeb918c497e8840b8ab116802dda79", "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.3/source.json": "2be409ac3c7601245958cd4fcdff4288be79ed23bd690b4b951f500d54ee6e7d", - "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198", - "https://git.stevenlr.com/460nm/bazel-registry.git/plain/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", - "https://git.stevenlr.com/460nm/bazel-registry.git/plain/modules/asl/0.4.0/MODULE.bazel": "767046b78b3dfeec294ab47800d20d2c3220f6d29aca915fef12868305d4b7eb", - "https://git.stevenlr.com/460nm/bazel-registry.git/plain/modules/asl/0.4.0/source.json": "b789c6c9dbbd5f8b256e47b31ff4869d23c6c2a31e7ed54acb6b4898252814dd", - "https://git.stevenlr.com/460nm/bazel-registry.git/plain/modules/sdl3_windows/3.2.6/MODULE.bazel": "857507d99ce37f1a4cb331a7888cec8511f38b0bfd46adb55d1b70a9cbe4e86f", - "https://git.stevenlr.com/460nm/bazel-registry.git/plain/modules/sdl3_windows/3.2.6/source.json": "5196961bbdfc230463ce7ea9049f7bab62b5ea7bccbfd376b85d07b2f909f98b" + "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" }, "selectedYankedVersions": {}, "moduleExtensions": { diff --git a/hk21/game/gpu.cpp b/hk21/game/gpu.cpp index a929e1a..220b99b 100644 --- a/hk21/game/gpu.cpp +++ b/hk21/game/gpu.cpp @@ -446,9 +446,9 @@ public: {
if (f.colorSpace == VK_COLOR_SPACE_SRGB_NONLINEAR_KHR &&
(f.format == VK_FORMAT_B8G8R8_UNORM ||
- f.format == VK_FORMAT_B8G8R8A8_UNORM ||
- f.format == VK_FORMAT_R8G8B8_UNORM ||
- f.format == VK_FORMAT_R8G8B8A8_UNORM))
+ f.format == VK_FORMAT_B8G8R8A8_UNORM ||
+ f.format == VK_FORMAT_R8G8B8_UNORM ||
+ f.format == VK_FORMAT_R8G8B8A8_UNORM))
{
format = f;
break;
|