From 9862e5d2074f8947dac5e963b0acea61910afce2 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 26 Nov 2016 09:54:24 +0100 Subject: [PATCH] vif hash: move bucket size check in the 'add' path instead of 'find' path More logical this way --- pcsx2/x86/newVif_HashBucket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/x86/newVif_HashBucket.h b/pcsx2/x86/newVif_HashBucket.h index d01dfcefa1..18a55b9b52 100644 --- a/pcsx2/x86/newVif_HashBucket.h +++ b/pcsx2/x86/newVif_HashBucket.h @@ -81,7 +81,6 @@ public: if( (result&0x7) == 0x7 ) return (T*)chainpos; } - if( bucket.Size > 3 ) DevCon.Warning( "recVifUnpk: Bucket 0x%04x has %d micro-programs", d % hSize, bucket.Size ); return NULL; } __fi void add(const T& dataPtr) { @@ -94,6 +93,7 @@ public: ); } memcpy(&bucket.Chain[bucket.Size++], &dataPtr, sizeof(T)); + if( bucket.Size > 3 ) DevCon.Warning( "recVifUnpk: Bucket 0x%04x has %d micro-programs", d % hSize, bucket.Size ); } void clear() { for (int i = 0; i < hSize; i++) {