Skip to content
Snippets Groups Projects
Commit 7e705a62 authored by johannes hanika's avatar johannes hanika Committed by Wenzel Jakob
Browse files

hslt: compile fixes

parent b821dc9e
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ template <typename Scalar> struct Resampler {
int sourceRes, int targetRes) : m_bc(bc), m_sourceRes(sourceRes), m_targetRes(targetRes),
m_start(NULL), m_weights(NULL) {
SAssert(sourceRes > 0 && targetRes > 0);
Float filterRadius = rfilter->getRadius(), scale = 1.0f, invScale = 1.0f;
Float filterRadius = rfilter->getRadius(), scale = (Float)1.0, invScale = (Float)1.0;
/* Low-pass filter: scale reconstruction filters when downsampling */
if (targetRes < sourceRes) {
......
......@@ -520,13 +520,13 @@ bool luminance(const mitsuba::Bitmap* source, const float multiplier,
V4i tailMask = V4i::zero();
switch (pixelCount % 4) {
case 1:
tailMask = V4i::constant<0, 0x00000000, 0x00000000, 0xffffffff>();
tailMask = V4i::constant<0, 0, 0, -1>();
break;
case 2:
tailMask = V4i::constant<0, 0x00000000, 0xffffffff, 0xffffffff>();
tailMask = V4i::constant<0, 0, -1, -1>();
break;
case 3:
tailMask = V4i::constant<0, 0xffffffff, 0xffffffff, 0xffffffff>();
tailMask = V4i::constant<0, -1, -1, -1>();
break;
}
// maxLuminance contains zeros in the invalid positions which is OK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment