Sfoglia il codice sorgente

Merge pull request #9143 from K0bin/scheduler-empty

vk_scheduler: Remove recorded_counts
liamwhite 3 anni fa
parent
commit
de4afde065
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      src/video_core/renderer_vulkan/vk_scheduler.h

+ 1 - 3
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{};