mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Remove useless check and add debug messages
IsEnabled() check is already done in GetDisplayRect, so it's pointless to do it here. Also updated a debug message in the GetFrameRect() function.
This commit is contained in:
parent
a2cdcb4e4d
commit
bf10873405
|
@ -456,8 +456,6 @@ GSVector4i GSState::GetDisplayRect(int i)
|
|||
|
||||
GSVector4i GSState::GetFrameRect(int i)
|
||||
{
|
||||
if (i < 0) i = IsEnabled(1) ? 1 : 0;
|
||||
|
||||
GSVector4i rectangle = GetDisplayRect(i);
|
||||
|
||||
int w = rectangle.width();
|
||||
|
@ -471,11 +469,13 @@ GSVector4i GSState::GetFrameRect(int i)
|
|||
rectangle.right = rectangle.left + w;
|
||||
rectangle.bottom = rectangle.top + h;
|
||||
|
||||
/*static GSVector4i old_r = (GSVector4i) 0;
|
||||
if ((old_r.left != r.left) || (old_r.right != r.right) || (old_r.top != r.top) || (old_r.right != r.right)){
|
||||
printf("w %d h %d left %d top %d right %d bottom %d\n",w,h,r.left,r.top,r.right,r.bottom);
|
||||
}
|
||||
old_r = r;*/
|
||||
#ifdef ENABLE_PCRTC_DEBUG
|
||||
static GSVector4i old_r[2] = { GSVector4i(0), GSVector4i(0) };
|
||||
if (!old_r[i].eq(rectangle))
|
||||
printf("Frame rectangle [%d] update!\nwidth: %d height: %d left: %d top: %d right: %d bottom: %d\n",
|
||||
i,w,h, rectangle.left, rectangle.top, rectangle.right, rectangle.bottom);
|
||||
old_r[i] = rectangle;
|
||||
#endif
|
||||
|
||||
return rectangle;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#pragma once
|
||||
|
||||
//#define ENABLE_VTUNE
|
||||
|
||||
//#define ENABLE_PCRTC_DEBUG
|
||||
#define ENABLE_JIT_RASTERIZER
|
||||
|
||||
#define EXTERNAL_SHADER_LOADING 1
|
||||
|
|
Loading…
Reference in New Issue