[vulkan] Set shadow map size limit to 1024

Even that's getting pretty big, but with the quanta at 128, that's a
maximum of 8 different image sizes (which is nice for my planned
"staging image" idea).
This commit is contained in:
Bill Currie 2023-12-14 09:54:33 +09:00
parent 9ba7207e20
commit a9ff79a76a

View file

@ -1616,6 +1616,7 @@ allocate_map (mapctx_t *mctx, int type, int (*getsize) (const light_t *light))
continue;
}
int light_size = getsize (&mctx->lights[li]);
light_size = min (light_size, 1024);
light_size = ((light_size + shadow_quanta - 1) / shadow_quanta)
* shadow_quanta;
if (size != light_size || numLayers + layers > mctx->maxLayers) {