diff --git a/core/hw/pvr/ta_ctx.h b/core/hw/pvr/ta_ctx.h index 631795643..c43b6c99a 100644 --- a/core/hw/pvr/ta_ctx.h +++ b/core/hw/pvr/ta_ctx.h @@ -1,4 +1,5 @@ #pragma once +#include #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(); \ No newline at end of file +bool UsingAutoSort();