aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/include/Helpers.h
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-11 21:27:11 +0100
committerAndreas Grois <andi@grois.info>2018-03-11 21:27:11 +0100
commit627aa610fc93398ac51129096ce8fb30731af341 (patch)
tree54c38179129a32bbe85753af63fc8b8e49b4c89c /BuddhaTest/include/Helpers.h
parentbc666e3edcbd53f3bbe5446f0c4bc23e83c044a0 (diff)
Split buffer in three, one per color (as OpenGL guarantees that one can at least have 8 SSBOs), to allow three times larger images. Also make it possible to ignore maximum buffer size reported by the driver.
The maximum buffer size limitation is rather strict on radeonsi, so I decided to split the buffer in three, effectively increasing the maximum image size by a factor of three. While doing so I realized that at least on radeonsi the reported maximum buffer size seems to be off. For this reason I added a new command line switch, that allows to ignore the maximum buffer size check. For those curious: radeonsi reports a maximum buffer size of 128 MB, but I had no problems when using three buffers of 1098 MB each.
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r--BuddhaTest/include/Helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/BuddhaTest/include/Helpers.h b/BuddhaTest/include/Helpers.h
index 76a9a57..6358066 100644
--- a/BuddhaTest/include/Helpers.h
+++ b/BuddhaTest/include/Helpers.h
@@ -50,6 +50,8 @@ namespace Helpers
double pngGamma = 1.0;
double pngColorScale = 2.0;
+ unsigned int ignoreMaxBufferSize = 0;
+
bool CheckValidity();
bool ParseCommandLine(int argc, char * argv[]);
};