summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2015-04-06 11:44:13 +0200
committerdegasus <wickmarkus@web.de>2015-05-25 09:33:34 +0200
commit6b2a1e57e2482efb46a91401fa22aaf5ef779974 (patch)
tree1c012863c06ba94f1c7f8702fc05047a88933b6e /Source/Core/VideoCommon/VertexLoader.cpp
parentacd074e291d287080031d7295baa6e2f7862440f (diff)
BBox: remove now unreachable SW bbox implementation
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp
index 8e5c73b6a0..d7dad1c95a 100644
--- a/Source/Core/VideoCommon/VertexLoader.cpp
+++ b/Source/Core/VideoCommon/VertexLoader.cpp
@@ -7,7 +7,6 @@
#include "Core/Host.h"
-#include "VideoCommon/BoundingBox.h"
#include "VideoCommon/DataReader.h"
#include "VideoCommon/PixelEngine.h"
#include "VideoCommon/VertexLoader.h"
@@ -24,14 +23,14 @@ u8* g_vertex_manager_write_ptr;
static void LOADERDECL PosMtx_ReadDirect_UByte(VertexLoader* loader)
{
- u8 posmtx = BoundingBox::posMtxIdx = DataReadU8() & 0x3f;
+ u32 posmtx = DataReadU8() & 0x3f;
DataWrite<u32>(posmtx);
PRIM_LOG("posmtx: %d, ", posmtx);
}
static void LOADERDECL TexMtx_ReadDirect_UByte(VertexLoader* loader)
{
- BoundingBox::texMtxIdx[loader->m_texmtxread] = loader->m_curtexmtx[loader->m_texmtxread] = DataReadU8() & 0x3f;
+ loader->m_curtexmtx[loader->m_texmtxread] = DataReadU8() & 0x3f;
PRIM_LOG("texmtx%d: %d, ", loader->m_texmtxread, loader->m_curtexmtx[loader->m_texmtxread]);
loader->m_texmtxread++;
@@ -87,10 +86,6 @@ void VertexLoader::CompileVertexTranslator()
// Reset pipeline
m_numPipelineStages = 0;
- // Get the pointer to this vertex's buffer data for the bounding box
- if (!g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable)
- WriteCall(BoundingBox::SetVertexBufferPosition);
-
// Colors
const u64 col[2] = { m_VtxDesc.Color0, m_VtxDesc.Color1 };
// TextureCoord
@@ -298,10 +293,6 @@ void VertexLoader::CompileVertexTranslator()
}
}
- // Update the bounding box
- if (!g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable)
- WriteCall(BoundingBox::Update);
-
// indexed position formats may skip a the vertex
if (m_VtxDesc.Position & 2)
{
@@ -317,7 +308,7 @@ void VertexLoader::WriteCall(TPipelineFunction func)
m_PipelineStages[m_numPipelineStages++] = func;
}
-int VertexLoader::RunVertices(DataReader src, DataReader dst, int count, int primitive)
+int VertexLoader::RunVertices(DataReader src, DataReader dst, int count)
{
g_vertex_manager_write_ptr = dst.GetPointer();
g_video_buffer_read_ptr = src.GetPointer();
@@ -325,10 +316,6 @@ int VertexLoader::RunVertices(DataReader src, DataReader dst, int count, int pri
m_numLoadedVertices += count;
m_skippedVertices = 0;
- // Prepare bounding box
- if (!g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable)
- BoundingBox::Prepare(m_vat, primitive, m_VtxDesc, m_native_vtx_decl);
-
for (int s = 0; s < count; s++)
{
m_tcIndex = 0;