[mednafen] 02/05: Imported Upstream version 0.9.38.2+dfsg

Stephen Kitt skitt at moszumanska.debian.org
Sun Feb 22 22:36:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository mednafen.

commit eb11097f537616c60eba509e428ea5b6d013d20c
Author: Stephen Kitt <steve at sk2.org>
Date:   Sun Feb 22 20:31:02 2015 +0100

    Imported Upstream version 0.9.38.2+dfsg
---
 ChangeLog                         |   7 ++++
 Documentation/gb.html             |   2 +-
 Documentation/gba.html            |   2 +-
 Documentation/gg.html             |   2 +-
 Documentation/lynx.html           |   2 +-
 Documentation/md.html             |   2 +-
 Documentation/mednafen.html       |   2 +-
 Documentation/modules.def         |   2 +-
 Documentation/nes.html            |   2 +-
 Documentation/netplay.html        |   2 +-
 Documentation/ngp.html            |   2 +-
 Documentation/pce.html            |   2 +-
 Documentation/pce_fast.html       |   2 +-
 Documentation/pcfx.html           |   2 +-
 Documentation/psx.html            |   2 +-
 Documentation/sms.html            |   2 +-
 Documentation/snes.html           |   2 +-
 Documentation/vb.html             |   2 +-
 Documentation/wswan.html          |   2 +-
 configure                         |   2 +-
 configure.ac                      |   2 +-
 src/math_ops.h                    |   2 +-
 src/psx/gpu_polygon.cpp           |  67 ++++++++++++++++++++------------------
 src/psx/notes/gpuprec.exe         | Bin 98304 -> 0 bytes
 src/psx/notes/linefuzz.exe        | Bin 94208 -> 0 bytes
 src/psx/notes/multires-newgpu.exe | Bin 94208 -> 0 bytes
 26 files changed, 64 insertions(+), 52 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c20e480..52bb471 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+-- 0.9.38.2: --
+
+February 15, 2015:
+	PSX: Fixed some miscellaneous minor issues in the triangle rasterization code.
+
+	PSX: Fixed a GPU timing regression introduced around version 0.9.37; fixes a disappearing graphics glitch in "Tobal No.1".
+
 -- 0.9.38.1: --
 
 February 11, 2015:
diff --git a/Documentation/gb.html b/Documentation/gb.html
index aa46369..dacfa7b 100644
--- a/Documentation/gb.html
+++ b/Documentation/gb.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Game Boy (Color) Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/gba.html b/Documentation/gba.html
index 58b571b..6c0e682 100644
--- a/Documentation/gba.html
+++ b/Documentation/gba.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Game Boy Advance Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul><li><a href="#Introduction%01BIOS">BIOS</a><ul></ul></li><li><a href="#Introduction%01Custom+Palettes">Custom Palettes</a><ul></ul></li><li><a href="#Introduction%01Backup+Memory+Type">Backup Memory Type</a><ul></ul></li></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/gg.html b/Documentation/gg.html
index 0541ddb..4fd5789 100644
--- a/Documentation/gg.html
+++ b/Documentation/gg.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Sega Game Gear Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/lynx.html b/Documentation/lynx.html
index 0460246..9b9d9c9 100644
--- a/Documentation/lynx.html
+++ b/Documentation/lynx.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Atari Lynx Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/md.html b/Documentation/md.html
index 129d12e..71874f3 100644
--- a/Documentation/md.html
+++ b/Documentation/md.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Sega Genesis/MegaDrive Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/mednafen.html b/Documentation/mednafen.html
index d169638..b15f225 100644
--- a/Documentation/mednafen.html
+++ b/Documentation/mednafen.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>General Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul><li><a href="#Section_base_directory">Base Directory</a><ul></ul></li></ul></li><li><a href="#Core+Features">Core Features</a><ul><li><a href="#Section_cdrom_emulation">CD Emulation</a><ul><li><a href="#Core+Features%01CD+Emulation%01Compact+Disc+Images">Compact Disc Images</a><ul></ul></li><li><a href="#Section_multicd_games">Multiple-CD Games</a><ul></ul></li><li><a href="#Section_cdg">CD+G</a><ul></ul></li><li><a href="#Section_phot [...]
diff --git a/Documentation/modules.def b/Documentation/modules.def
index 857a404..d1a93b9 100644
--- a/Documentation/modules.def
+++ b/Documentation/modules.def
@@ -1,4 +1,4 @@
-0.9.38.1
+0.9.38.2
 nes
 Nintendo Entertainment System/Famicom
 256
diff --git a/Documentation/nes.html b/Documentation/nes.html
index 9d4ab66..66a25db 100644
--- a/Documentation/nes.html
+++ b/Documentation/nes.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Nintendo Entertainment System/Famicom Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul><li><a href="#Introduction%01Custom+Palettes">Custom Palettes</a><ul></ul></li><li><a href="#Introduction%01Input">Input</a><ul><li><a href="#Introduction%01Input%01Zapper">Zapper</a><ul></ul></li></ul></li><li><a href="#Introduction%01File+Formats">File Formats</a><ul><li><a href="#Introduction%01File+Formats%01iNES+Format">iNES Format</a><ul></ul></li><li><a href="#Introduction%01File+Formats%01UNIF">UNIF</a><ul></ul></li></ul></li>< [...]
diff --git a/Documentation/netplay.html b/Documentation/netplay.html
index 8ef23f1..7f0f3f6 100644
--- a/Documentation/netplay.html
+++ b/Documentation/netplay.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Netplay Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Setting+up+the+Server">Setting up the Server</a><ul></ul></li><li><a href="#Using+Mednafen%27s+netplay+console">Using Mednafen's netplay console</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/ngp.html b/Documentation/ngp.html
index 8b7c7a1..b56d76c 100644
--- a/Documentation/ngp.html
+++ b/Documentation/ngp.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Neo Geo Pocket (Color) Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/pce.html b/Documentation/pce.html
index c19a85d..c9b722d 100644
--- a/Documentation/pce.html
+++ b/Documentation/pce.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>PC Engine/TurboGrafx 16 (CD)/SuperGrafx Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Custom+Palettes">Custom Palettes</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Advanced+Usage">Advanced Usage</a><ul><li><a href="#Advanced+Usage%01Accidental+Soft+Resets">Accidental Soft Resets</a><ul></ul></li><li><a href="#Advanced+Usage%01Sprite+Flickering">Sprite Flickering</a><ul></ul></li><li><a href="#Advanced+Usage%01Obnoxious+Sound+Effect [...]
diff --git a/Documentation/pce_fast.html b/Documentation/pce_fast.html
index 8f18643..6c9df7c 100644
--- a/Documentation/pce_fast.html
+++ b/Documentation/pce_fast.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>PC Engine (CD)/TurboGrafx 16 (CD)/SuperGrafx Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/pcfx.html b/Documentation/pcfx.html
index 96c28db..ea142ab 100644
--- a/Documentation/pcfx.html
+++ b/Documentation/pcfx.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>PC-FX Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Section_firmware_bios">Firmware/BIOS</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/psx.html b/Documentation/psx.html
index a1d21a6..e5f3c69 100644
--- a/Documentation/psx.html
+++ b/Documentation/psx.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Sony PlayStation Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Section_intro">Introduction</a><ul></ul></li><li><a href="#Section_firmware_bios">Firmware/BIOS</a><ul></ul></li><li><a href="#Analog+Sticks+Range+Issues">Analog Sticks Range Issues</a><ul></ul></li><li><a href="#Section_multitap">Multitap Usage</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/sms.html b/Documentation/sms.html
index b6468a5..e95fc5c 100644
--- a/Documentation/sms.html
+++ b/Documentation/sms.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Sega Master System Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/snes.html b/Documentation/snes.html
index f69b5f5..0a121aa 100644
--- a/Documentation/snes.html
+++ b/Documentation/snes.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Super Nintendo Entertainment System/Super Famicom Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/vb.html b/Documentation/vb.html
index 58427a0..8bfeeec 100644
--- a/Documentation/vb.html
+++ b/Documentation/vb.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>Virtual Boy Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/Documentation/wswan.html b/Documentation/wswan.html
index 7de31fa..1e24417 100644
--- a/Documentation/wswan.html
+++ b/Documentation/wswan.html
@@ -9,7 +9,7 @@
  <body>
   <center><h1><img alt="Mednafen" src="mednafen.png" width="696" height="204"></h1></center>
   <center><h1>WonderSwan Documentation</h1></center>
-  <center><i>Last updated February 11, 2015<br>Valid as of 0.9.38.1</i></center>
+  <center><i>Last updated February 16, 2015<br>Valid as of 0.9.38.2</i></center>
  <p></p>
  <b>Table of Contents:</b>
  <ul><li><a href="#Introduction">Introduction</a><ul></ul></li><li><a href="#Default+Key+Assignments">Default Key Assignments</a><ul></ul></li><li><a href="#Game-specific+Emulation+Hacks">Game-specific Emulation Hacks</a><ul></ul></li><li><a href="#Settings+Reference">Settings Reference</a><ul></ul></li></ul><hr width="100%">
diff --git a/configure b/configure
index c81e3c3..e94e130 100755
--- a/configure
+++ b/configure
@@ -4328,7 +4328,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 #
 # Avoid trailing and leading zeroes in the decimal version components to avoid confusing not-so-learned people.
 #
-MEDNAFEN_VERSION='0.9.38.1'
+MEDNAFEN_VERSION='0.9.38.2'
 MEDNAFEN_VERSION_NUMERIC=0x000938
 
 ac_aux_dir=
diff --git a/configure.ac b/configure.ac
index 8282d1b..36b4ac1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_CONFIG_MACRO_DIR([m4])
 #
 # Avoid trailing and leading zeroes in the decimal version components to avoid confusing not-so-learned people.
 #
-MEDNAFEN_VERSION='0.9.38.1'
+MEDNAFEN_VERSION='0.9.38.2'
 MEDNAFEN_VERSION_NUMERIC=0x000938
 
 AC_CANONICAL_HOST
diff --git a/src/math_ops.h b/src/math_ops.h
index 43d8e3c..e134e8f 100644
--- a/src/math_ops.h
+++ b/src/math_ops.h
@@ -64,7 +64,7 @@ static INLINE unsigned MDFN_lzcount64(uint64 v)
 {
  #if defined(__GNUC__) || defined(__clang__) || defined(__ICC) || defined(__INTEL_COMPILER)
  return v ? __builtin_clzll(v) : 64;
- #elif defined(_MSC_VER)
+ #elif defined(_MSC_VER) && defined(_WIN64)
  unsigned long idx;
 
  if(!v)
diff --git a/src/psx/gpu_polygon.cpp b/src/psx/gpu_polygon.cpp
index c7363c7..de83b7a 100644
--- a/src/psx/gpu_polygon.cpp
+++ b/src/psx/gpu_polygon.cpp
@@ -143,43 +143,43 @@ INLINE void PS_GPU::DrawSpan(int y, const int32 x_start, const int32 x_bound, i_
   if(LineSkipTest(y))
    return;
 
-  if(textured)
-  {
-   ig.u += (x_start * idl.du_dx) + (y * idl.du_dy);
-   ig.v += (x_start * idl.dv_dx) + (y * idl.dv_dy);
-  }
+  int32 x_ig_adjust = x_start;
+  int32 w = x_bound - x_start;
+  int32 x = sign_x_to_s32(11, x_start);
 
-  if(goraud)
+  if(x < ClipX0)
   {
-   ig.r += (x_start * idl.dr_dx) + (y * idl.dr_dy);
-   ig.g += (x_start * idl.dg_dx) + (y * idl.dg_dy);
-   ig.b += (x_start * idl.db_dx) + (y * idl.db_dy);
+   int32 delta = ClipX0 - x;
+   x_ig_adjust += delta;
+   x += delta;
+   w -= delta;
   }
 
-  for(int32 xi = x_start; MDFN_LIKELY(xi < x_bound); xi++, AddIDeltas_DX<goraud, textured>(ig, idl))
-  {
-   uint32 r, g, b;
-   int32 x = sign_x_to_s32(11, xi);
+  if((x + w) > (ClipX1 + 1))
+   w = ClipX1 + 1 - x;
 
-   if(goraud || textured)
-    DrawTimeAvail -= 2;
-   else
-    DrawTimeAvail--;
+  if(w <= 0)
+   return;
 
-   if(x > ClipX1)
-    break;
+  //printf("%d %d %d %d\n", x, w, ClipX0, ClipX1);
 
-   if(x < ClipX0)
-    continue;
+  AddIDeltas_DX<goraud, textured>(ig, idl, x_ig_adjust);
+  AddIDeltas_DY<goraud, textured>(ig, idl, y);
 
-   if(!(goraud || textured) && ((BlendMode >= 0) || MaskEval_TA))
-   {
-    DrawTimeAvail -= (x & 1);
-   }
+  if(goraud || textured)
+   DrawTimeAvail -= w * 2;
+  else if((BlendMode >= 0) || MaskEval_TA)
+   DrawTimeAvail -= w + ((w + 1) >> 1);
+  else
+   DrawTimeAvail -= w;
+
+  do
+  {
+   const uint32 r = ig.r >> (COORD_FBS + COORD_POST_PADDING);
+   const uint32 g = ig.g >> (COORD_FBS + COORD_POST_PADDING);
+   const uint32 b = ig.b >> (COORD_FBS + COORD_POST_PADDING);
 
-   r = ig.r >> (COORD_FBS + COORD_POST_PADDING);
-   g = ig.g >> (COORD_FBS + COORD_POST_PADDING);
-   b = ig.b >> (COORD_FBS + COORD_POST_PADDING);
+   //assert(x >= ClipX0 && x <= ClipX1);
 
    if(textured)
    {
@@ -222,7 +222,10 @@ INLINE void PS_GPU::DrawSpan(int y, const int32 x_start, const int32 x_bound, i_
     
     PlotPixel<BlendMode, MaskEval_TA, false>(x, y, pix);
    }
-  }
+
+   x++;
+   AddIDeltas_DX<goraud, textured>(ig, idl);
+  } while(MDFN_LIKELY(--w > 0));
 }
 
 template<bool goraud, bool textured, int BlendMode, bool TexMult, uint32 TexMode_TA, bool MaskEval_TA>
@@ -244,6 +247,8 @@ INLINE void PS_GPU::DrawTriangle(tri_vertex *vertices)
    else
     cvtemp = (1 << 1);
   }
+  else if(vertices[2].x < vertices[0].x)
+   cvtemp = (1 << 2);
   else
    cvtemp = (1 << 0);
 
@@ -453,7 +458,7 @@ INLINE void PS_GPU::DrawTriangle(tri_vertex *vertices)
      continue;
     }
 
-    DrawSpan<goraud, textured, BlendMode, TexMult, TexMode_TA, MaskEval_TA>(y, GetPolyXFP_Int(lc), GetPolyXFP_Int(rc), ig, idl);
+    DrawSpan<goraud, textured, BlendMode, TexMult, TexMode_TA, MaskEval_TA>(yi, GetPolyXFP_Int(lc), GetPolyXFP_Int(rc), ig, idl);
    }
   }
   else
@@ -471,7 +476,7 @@ INLINE void PS_GPU::DrawTriangle(tri_vertex *vertices)
      goto skipit;
     }
 
-    DrawSpan<goraud, textured, BlendMode, TexMult, TexMode_TA, MaskEval_TA>(y, GetPolyXFP_Int(lc), GetPolyXFP_Int(rc), ig, idl);
+    DrawSpan<goraud, textured, BlendMode, TexMult, TexMode_TA, MaskEval_TA>(yi, GetPolyXFP_Int(lc), GetPolyXFP_Int(rc), ig, idl);
     //
     //
     //
diff --git a/src/psx/notes/gpuprec.exe b/src/psx/notes/gpuprec.exe
deleted file mode 100644
index 7ccf3e0..0000000
Binary files a/src/psx/notes/gpuprec.exe and /dev/null differ
diff --git a/src/psx/notes/linefuzz.exe b/src/psx/notes/linefuzz.exe
deleted file mode 100644
index bfaba01..0000000
Binary files a/src/psx/notes/linefuzz.exe and /dev/null differ
diff --git a/src/psx/notes/multires-newgpu.exe b/src/psx/notes/multires-newgpu.exe
deleted file mode 100644
index 21272be..0000000
Binary files a/src/psx/notes/multires-newgpu.exe and /dev/null differ

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednafen.git



More information about the Pkg-games-commits mailing list