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
This commit is contained in:
Daniel Eklöf 2025-10-04 09:29:56 +02:00
parent 80951ab7a6
commit fac3994154
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 29 additions and 1 deletions

View file

@ -1413,6 +1413,9 @@ test_section_tweak(void)
test_float(&ctx, &parse_section_tweak, "bold-text-in-bright-amount",
&conf.bold_in_bright.amount);
test_uint32(&ctx, &parse_section_tweak, "min-stride-alignment",
&conf.tweak.min_stride_alignment);
#if 0 /* Must be equal to, or less than INT32_MAX */
test_uint32(&ctx, &parse_section_tweak, "max-shm-pool-size-mb",
&conf.tweak.max_shm_pool_size);