Fix issue from PR #1023

This commit is contained in:
hissingshark 2018-04-03 17:38:30 +01:00 committed by GitHub
parent fb418d568c
commit 3ab9c22516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#pragma once
#include <malloc.h>
#include "ta.h"
#include "pvr_regs.h"
@ -151,8 +152,8 @@ struct TA_context
}
void Alloc()
{
tad.Reset((u8*)malloc(2*1024*1024));
tad.Reset((u8*)memalign(32, 2*1024*1024));
rend.verts.InitBytes(1024*1024,&rend.Overrun); //up to 1 mb of vtx data/frame = ~ 38k vtx/frame
rend.idx.Init(60*1024,&rend.Overrun); //up to 60K indexes ( idx have stripification overhead )
rend.global_param_op.Init(4096,&rend.Overrun);
@ -217,4 +218,4 @@ void VDecEnd();
//must be moved to proper header
void FillBGP(TA_context* ctx);
bool UsingAutoSort();
bool UsingAutoSort();