forked from bartvdbraak/blender
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:
parent
0325f5e736
commit
f5cc313d9d
@ -558,20 +558,19 @@ void initparts(Render *re, int do_crop)
|
|||||||
xparts = re->r.xparts;
|
xparts = re->r.xparts;
|
||||||
yparts = re->r.yparts;
|
yparts = re->r.yparts;
|
||||||
|
|
||||||
/* mininum part size, but for exr tile saving it was checked already */
|
/* minimum part size */
|
||||||
if (!(re->r.scemode & (R_EXR_TILE_FILE | R_FULL_SAMPLE))) {
|
if (re->r.mode & R_PANORAMA) {
|
||||||
if (re->r.mode & R_PANORAMA) {
|
if (ceil(re->rectx / (float)xparts) < 8)
|
||||||
if (ceil(re->rectx / (float)xparts) < 8)
|
xparts = 1 + re->rectx / 8;
|
||||||
xparts = 1 + re->rectx / 8;
|
}
|
||||||
}
|
else {
|
||||||
else
|
|
||||||
if (ceil(re->rectx / (float)xparts) < 64)
|
if (ceil(re->rectx / (float)xparts) < 64)
|
||||||
xparts = 1 + re->rectx / 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 */
|
/* part size */
|
||||||
partx = ceil(re->rectx / (float)xparts);
|
partx = ceil(re->rectx / (float)xparts);
|
||||||
party = ceil(re->recty / (float)yparts);
|
party = ceil(re->recty / (float)yparts);
|
||||||
|
Loading…
Reference in New Issue
Block a user