From a33e5e909e31555853dadcab31b9194e6f0611bb Mon Sep 17 00:00:00 2001 From: Zangetsu38 Date: Tue, 23 Jan 2018 12:08:43 +0100 Subject: [PATCH] Test --- Utilities/Thread.cpp | 14 ++++++++------ rpcs3/Emu/Cell/Modules/cellFont.cpp | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 52299871d5..e8249fa8fc 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1901,32 +1901,34 @@ u16 thread_ctrl::get_affinity_mask(thread_class group) } case native_core_arrangement::amd_ccx: { - u16 spu_mask, ppu_mask, rsx_mask; + u16 spu_mask, ppu_mask, rsx_mask, general; if (thread_count >= 16) { // Threadripper, R7 - // Assign threads 8-16 + // Assign threads 1-16 // It appears some windows code is bound to lower core addresses, binding 8-16 is alot faster than 0-7 ppu_mask = spu_mask = 0b1111111100000000; - rsx_mask = all_cores_mask; + rsx_mask = 0b11110000; + general = 0b00001111; } else if (thread_count == 12) { // 1600/2600 (x) ppu_mask = spu_mask = 0b111111000000; - rsx_mask = all_cores_mask; + rsx_mask = 0b111000; + general = 0b000111; } else { // R5 & R3 don't seem to improve performance no matter how these are shuffled - ppu_mask = spu_mask = rsx_mask = 0b11111111 & all_cores_mask; + ppu_mask = spu_mask = rsx_mask = general = 0b11111111; } switch (group) { default: case thread_class::general: - return all_cores_mask; + return general = all_cores_mask; case thread_class::rsx: return rsx_mask; case thread_class::ppu: diff --git a/rpcs3/Emu/Cell/Modules/cellFont.cpp b/rpcs3/Emu/Cell/Modules/cellFont.cpp index 313205160c..f83d037245 100644 --- a/rpcs3/Emu/Cell/Modules/cellFont.cpp +++ b/rpcs3/Emu/Cell/Modules/cellFont.cpp @@ -1,4 +1,4 @@ -#include "stdafx.h" +#include "stdafx.h" #include "Emu/System.h" #include "Emu/Cell/PPUModule.h" @@ -554,7 +554,7 @@ s32 cellFontExtend(u32 a1, u32 a2, u32 a3) //Something happens } //Something happens? - return CELL_OK; + return -1; } s32 cellFontRenderCharGlyphImageVertical()