Browse Source
Merge pull request #9921 from liamwhite/override
general: fix type inconsistencies
pull/15/merge
Morph
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
7 additions and
7 deletions
-
src/core/hle/kernel/k_address_space_info.cpp
-
src/core/hle/kernel/k_address_space_info.h
-
src/core/hle/kernel/k_device_address_space.h
-
src/video_core/renderer_vulkan/vk_buffer_cache.cpp
|
|
|
@ -44,11 +44,11 @@ const KAddressSpaceInfo& GetAddressSpaceInfo(size_t width, KAddressSpaceInfo::Ty |
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
uintptr_t KAddressSpaceInfo::GetAddressSpaceStart(size_t width, KAddressSpaceInfo::Type type) { |
|
|
|
std::size_t KAddressSpaceInfo::GetAddressSpaceStart(size_t width, KAddressSpaceInfo::Type type) { |
|
|
|
return GetAddressSpaceInfo(width, type).address; |
|
|
|
} |
|
|
|
|
|
|
|
size_t KAddressSpaceInfo::GetAddressSpaceSize(size_t width, KAddressSpaceInfo::Type type) { |
|
|
|
std::size_t KAddressSpaceInfo::GetAddressSpaceSize(size_t width, KAddressSpaceInfo::Type type) { |
|
|
|
return GetAddressSpaceInfo(width, type).size; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ struct KAddressSpaceInfo final { |
|
|
|
Count, |
|
|
|
}; |
|
|
|
|
|
|
|
static u64 GetAddressSpaceStart(std::size_t width, Type type); |
|
|
|
static std::size_t GetAddressSpaceStart(std::size_t width, Type type); |
|
|
|
static std::size_t GetAddressSpaceSize(std::size_t width, Type type); |
|
|
|
|
|
|
|
const std::size_t bit_width{}; |
|
|
|
|
|
|
|
@ -21,9 +21,9 @@ public: |
|
|
|
~KDeviceAddressSpace(); |
|
|
|
|
|
|
|
Result Initialize(u64 address, u64 size); |
|
|
|
void Finalize(); |
|
|
|
void Finalize() override; |
|
|
|
|
|
|
|
bool IsInitialized() const { |
|
|
|
bool IsInitialized() const override { |
|
|
|
return m_is_initialized; |
|
|
|
} |
|
|
|
static void PostDestroy(uintptr_t arg) {} |
|
|
|
|
|
|
|
@ -238,7 +238,7 @@ private: |
|
|
|
return indices; |
|
|
|
} |
|
|
|
|
|
|
|
void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) { |
|
|
|
void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) override { |
|
|
|
switch (index_type) { |
|
|
|
case VK_INDEX_TYPE_UINT8_EXT: |
|
|
|
std::memcpy(staging_data, MakeIndices<u8>(quad, first).data(), quad_size); |
|
|
|
@ -278,7 +278,7 @@ private: |
|
|
|
return indices; |
|
|
|
} |
|
|
|
|
|
|
|
void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) { |
|
|
|
void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) override { |
|
|
|
switch (index_type) { |
|
|
|
case VK_INDEX_TYPE_UINT8_EXT: |
|
|
|
std::memcpy(staging_data, MakeIndices<u8>(quad, first).data(), quad_size); |
|
|
|
|