Skip to content

Commit

Permalink
Buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 19, 2024
1 parent d5bfc1b commit 858d997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GPU/Common/TextureCacheCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3096,7 +3096,7 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const {

ImGui::SameLine();
ImGui::BeginChild("right", ImVec2(0.f, 0.0f));
if (ImGui::CollapsingHeader("Texture", ImGuiTreeNodeFlags_DefaultOpen)) {
if (ImGui::CollapsingHeader("Texture", nullptr, ImGuiTreeNodeFlags_DefaultOpen)) {
if (selectedTextureId) {
auto iter = cache_.find(selectedTextureId);
if (iter != cache_.end()) {
Expand Down Expand Up @@ -3143,7 +3143,7 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const {
}
}

if (ImGui::CollapsingHeader("Texture Cache State"), ImGuiTreeNodeFlags_DefaultOpen) {
if (ImGui::CollapsingHeader("Texture Cache State", nullptr, ImGuiTreeNodeFlags_DefaultOpen) {
ImGui::Text("Cache: %d textures, size est %d", (int)cache_.size(), cacheSizeEstimate_);
if (!secondCache_.empty()) {
ImGui::Text("Second: %d textures, size est %d", (int)secondCache_.size(), secondCacheSizeEstimate_);
Expand All @@ -3168,5 +3168,6 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const {
}
}
}

ImGui::EndChild();
}
3 changes: 3 additions & 0 deletions unittest/UnitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,9 @@ bool TestBuffer() {
return true;
}

#if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER)
[[gnu::target("sse4.1")]]
#endif
bool TestSIMD() {
#if PPSSPP_ARCH(SSE2)
__m128i x = _mm_set_epi16(0, 0x4444, 0, 0x3333, 0, 0x2222, 0, 0x1111);
Expand Down

0 comments on commit 858d997

Please sign in to comment.