From 5d0467629625f8a092ac2ef8ba5f30c629cc8b62 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 17 Mar 2018 08:56:53 +0100 Subject: Improve parallelization by not storing the offset, but instead re-calculating it every dispatch. By this I could get the VGPR usage down from 40 to 36. --- BuddhaTest/src/BuddhaTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BuddhaTest/src') diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp index 24f5893..14f4dd3 100644 --- a/BuddhaTest/src/BuddhaTest.cpp +++ b/BuddhaTest/src/BuddhaTest.cpp @@ -127,7 +127,7 @@ int main(int argc, char * argv[]) GLuint stateBuffer; glGenBuffers(1,&stateBuffer); glBindBuffer(GL_SHADER_STORAGE_BUFFER,stateBuffer); - glBufferData(GL_SHADER_STORAGE_BUFFER, 4*(7*workersPerFrame),nullptr,GL_DYNAMIC_COPY); + glBufferData(GL_SHADER_STORAGE_BUFFER, 4*(5*workersPerFrame),nullptr,GL_DYNAMIC_COPY); glClearBufferData(GL_SHADER_STORAGE_BUFFER,GL_R8,GL_RED,GL_UNSIGNED_INT,nullptr); glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 5, stateBuffer); -- cgit v1.2.3