Permalink
Browse files

SoftGPU: Avoid some compile warnings.

Remove some no-longer used funcs, add some switch default logs.
  • Loading branch information...
unknownbrackets committed Jun 7, 2017
1 parent 14cf862 commit a6f56769a8264ec335c74ab3bdf64f20bdba097b
Showing with 7 additions and 16 deletions.
  1. +0 −16 GPU/Software/Rasterizer.cpp
  2. +7 −0 GPU/Software/TransformUnit.cpp
@@ -39,22 +39,6 @@
namespace Rasterizer {
//static inline int orient2d(const DrawingCoords& v0, const DrawingCoords& v1, const DrawingCoords& v2)
static inline int orient2d(const ScreenCoords& v0, const ScreenCoords& v1, const ScreenCoords& v2)
{
return ((int)v1.x-(int)v0.x)*((int)v2.y-(int)v0.y) - ((int)v1.y-(int)v0.y)*((int)v2.x-(int)v0.x);
}
static inline int orient2dIncX(int dY01)
{
return dY01;
}
static inline int orient2dIncY(int dX01)
{
return -dX01;
}
// Only OK on x64 where our stack is aligned
#if defined(_M_SSE) && !defined(_M_IX86)
static inline __m128 Interpolate(const __m128 &c0, const __m128 &c1, const __m128 &c2, int w0, int w1, int w2, float wsum) {
@@ -348,6 +348,9 @@ void TransformUnit::SubmitPrimitive(void* vertices, void* indices, GEPrimitiveTy
case GE_PRIM_POINTS:
Clipper::ProcessPoint(data[0]);
break;
default:
_dbg_assert_msg_(G3D, false, "Unexpected prim type: %d", prim_type);
}
}
break;
@@ -474,6 +477,10 @@ void TransformUnit::SubmitPrimitive(void* vertices, void* indices, GEPrimitiveTy
}
break;
}
default:
ERROR_LOG(G3D, "Unexpected prim type: %d", prim_type);
break;
}
host->GPUNotifyDraw();

0 comments on commit a6f5676

Please sign in to comment.