summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-11-01 02:37:46 +0100
committerGitHub <noreply@github.com>2022-11-01 02:37:46 +0100
commitde4afde065ab1851c1082bd3db3a113653a16b4d (patch)
tree796026d9814d8fb0888ce85978324b3801128f0b /src
parentMerge pull request #9159 from liamwhite/kbork (diff)
parentvk_scheduler: Remove recorded_counts (diff)
downloadyuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.tar
yuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.tar.gz
yuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.tar.bz2
yuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.tar.lz
yuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.tar.xz
yuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.tar.zst
yuzu-de4afde065ab1851c1082bd3db3a113653a16b4d.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h
index c04aad08f..929216749 100644
--- a/src/video_core/renderer_vulkan/vk_scheduler.h
+++ b/src/video_core/renderer_vulkan/vk_scheduler.h
@@ -144,7 +144,6 @@ private:
using FuncType = TypedCommand<T>;
static_assert(sizeof(FuncType) < sizeof(data), "Lambda is too large");
- recorded_counts++;
command_offset = Common::AlignUp(command_offset, alignof(FuncType));
if (command_offset > sizeof(data) - sizeof(FuncType)) {
return false;
@@ -166,7 +165,7 @@ private:
}
bool Empty() const {
- return recorded_counts == 0;
+ return command_offset == 0;
}
bool HasSubmit() const {
@@ -177,7 +176,6 @@ private:
Command* first = nullptr;
Command* last = nullptr;
- size_t recorded_counts = 0;
size_t command_offset = 0;
bool submit = false;
alignas(std::max_align_t) std::array<u8, 0x8000> data{};