Skip to content

Commit

Permalink
Merge pull request #17 from SonicMastr/main
Browse files Browse the repository at this point in the history
Bump max supported texture units to 16
  • Loading branch information
GrapheneCt authored Apr 15, 2022
2 parents 9670a22 + a10bdb8 commit 19c384c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 0 additions & 8 deletions eurasiacon/opengles2/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,10 @@

#define GLES2_MIN_TEXTURE_LEVEL 0

#if defined(GLES2_TEST_LIMITS)
#define GLES2_MAX_TEXTURE_UNITS 16
#define GLES2_MAX_VERTEX_TEXTURE_UNITS 16
#define GLES2_MAX_VERTEX_UNIFORM_VECTORS 512
#define GLES2_MAX_FRAGMENT_UNIFORM_VECTORS 64
#else
#define GLES2_MAX_TEXTURE_UNITS 8
#define GLES2_MAX_VERTEX_TEXTURE_UNITS 8
#define GLES2_MAX_VERTEX_UNIFORM_VECTORS 128
#define GLES2_MAX_FRAGMENT_UNIFORM_VECTORS 64
#endif


#define GLES2_MAX_VERTICES 65536
#define GLES2_MAX_INDICES 65536
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ PVRSRV_ERROR IMG_CALLCONV PVRSRVCreateDCSwapChain(IMG_HANDLE hDevice,

psSwapChain->psConnection = psConnection;
psSwapChain->hSwapChainReadyEvf = readyEvfId;
psSwapChain->hSwapChainPendingEvf = pendingEvfId;
psSwapChain->hSwapChainThread = thrdId;
psSwapChain->sDims.ui32Width = psSrcSurfAttrib->sDims.ui32Width;
psSwapChain->sDims.ui32Height = psSrcSurfAttrib->sDims.ui32Height;
Expand Down Expand Up @@ -512,10 +513,6 @@ IMG_HANDLE hSwapChain)

psSwapChain = (PSP2_SWAPCHAIN *)hSwapChain;

for (i = 0; i < psSwapChain->ui32BufferCount; i++) {
sceKernelFreeMemBlock(psSwapChain->hDispMemUID[i]);
}

s_psOldBufSyncInfo = IMG_NULL;

s_flipChainExists = IMG_FALSE;
Expand All @@ -530,6 +527,10 @@ IMG_HANDLE hSwapChain)
PVRSRVDestroySyncInfoModObj((PVRSRV_CONNECTION *)hDevice, s_hKernelSwapChainSync[i]);
}

for (i = 0; i < psSwapChain->ui32BufferCount; i++) {
sceKernelFreeMemBlock(psSwapChain->hDispMemUID[i]);
}

PVRSRVFreeUserModeMem(psSwapChain);

return PVRSRV_OK;
Expand Down

0 comments on commit 19c384c

Please sign in to comment.