Fix issue from PR #1023
This commit is contained in:
parent
fb418d568c
commit
3ab9c22516
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue