Clamp minimal tile size with Save Buffers and FSAA enabled

That was an old check whether tiled EXRs are used during rendering
since version 2.42 where there indeed was a special check for tile
size in EXR tile code.

Now it seems EXR could handle tiles with non-equal size and no
extra tile size check happens for EXR. Anyway EXR tile initialization
happens after initparts, so clamping size in initparts should be
safe for EXR tiles as well.
This commit is contained in:
Sergey Sharybin 2012-10-15 12:54:12 +00:00
parent 0325f5e736
commit f5cc313d9d

@ -558,20 +558,19 @@ void initparts(Render *re, int do_crop)
xparts = re->r.xparts;
yparts = re->r.yparts;
/* mininum part size, but for exr tile saving it was checked already */
if (!(re->r.scemode & (R_EXR_TILE_FILE | R_FULL_SAMPLE))) {
if (re->r.mode & R_PANORAMA) {
if (ceil(re->rectx / (float)xparts) < 8)
xparts = 1 + re->rectx / 8;
}
else
/* minimum part size */
if (re->r.mode & R_PANORAMA) {
if (ceil(re->rectx / (float)xparts) < 8)
xparts = 1 + re->rectx / 8;
}
else {
if (ceil(re->rectx / (float)xparts) < 64)
xparts = 1 + re->rectx / 64;
if (ceil(re->recty / (float)yparts) < 64)
yparts = 1 + re->recty / 64;
}
if (ceil(re->recty / (float)yparts) < 64)
yparts = 1 + re->recty / 64;
/* part size */
partx = ceil(re->rectx / (float)xparts);
party = ceil(re->recty / (float)yparts);