Skip to content

Instantly share code, notes, and snippets.

@vlj
Last active August 29, 2015 14:23
Show Gist options
  • Save vlj/44165785c64119a805aa to your computer and use it in GitHub Desktop.
Save vlj/44165785c64119a805aa to your computer and use it in GitHub Desktop.
From 9f0d585d2f60a35313e705e15757fce7221cfdc7 Mon Sep 17 00:00:00 2001
From: vlj <vljn.ovi@gmail.com>
Date: Sat, 27 Jun 2015 01:19:31 +0200
Subject: [PATCH] Fix build errors
---
rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp | 4 ++--
rpcs3/Emu/SysCalls/Modules/cellSync.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp
index e78b220..7aca600 100644
--- a/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp
+++ b/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp
@@ -244,7 +244,7 @@ ID3D12Resource *createVertexBuffer(const VertexBufferFormat &vbf, const RSXVerte
{
const u16* c_src = (const u16*)src;
u16* c_dst = (u16*)dst;
- for (u32 j = 0; j < size; ++j) *c_dst++ = re16(*c_src++);
+ for (u32 j = 0; j < size; ++j) *c_dst++ = _byteswap_ushort(*c_src++);
break;
}
@@ -252,7 +252,7 @@ ID3D12Resource *createVertexBuffer(const VertexBufferFormat &vbf, const RSXVerte
{
const u32* c_src = (const u32*)src;
u32* c_dst = (u32*)dst;
- for (u32 j = 0; j < size; ++j) *c_dst++ = re32(*c_src++);
+ for (u32 j = 0; j < size; ++j) *c_dst++ = _byteswap_ulong(*c_src++);
break;
}
}
diff --git a/rpcs3/Emu/SysCalls/Modules/cellSync.cpp b/rpcs3/Emu/SysCalls/Modules/cellSync.cpp
index 3568c1f..5358fc7 100644
--- a/rpcs3/Emu/SysCalls/Modules/cellSync.cpp
+++ b/rpcs3/Emu/SysCalls/Modules/cellSync.cpp
@@ -126,7 +126,7 @@ s32 cellSyncBarrierInitialize(vm::ptr<CellSyncBarrier> barrier, u16 total_count)
}
// clear current value, write total_count and sync
- barrier->exchange({ 0, total_count });
+ barrier->exchange({ 0, be_t<s16>(total_count) });
return CELL_OK;
}
--
1.9.5.github.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment