aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-10-04 07:29:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-10-05 07:40:20 +0000
commitfac399415452edba6f20986e5f8fa479863582fe (patch)
treeab7cd95c8fd2af7d3ca36c727191a9dac0dfa77d /shm.h
parentterm: osc8: tag *all* cells in a multi-column character as an URI (diff)
config: add tweak.min-stride-alignment
This allows the user to configure the value by which a surface buffer's stride must be an even multiple of. This can be used to ensure the stride meets the GPU driver's requirements for direct import. Defaults to 256. Set to 0 to disable. Closes #2182
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shm.h b/shm.h
index 8f8c406a..6050f1c7 100644
--- a/shm.h
+++ b/shm.h
@@ -42,7 +42,10 @@ struct buffer {
};
void shm_fini(void);
+
+/* TODO: combine into shm_init() */
void shm_set_max_pool_size(off_t max_pool_size);
+void shm_set_min_stride_alignment(size_t min_stride_alignment);
struct buffer_chain;
struct buffer_chain *shm_chain_new(