Skip to content

Commit

Permalink
fix for 4-byte aligned hair geometry on MIC
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenthin committed Jan 9, 2015
1 parent 2d8dbe6 commit 6e01b86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kernels/common/scene_bezier_curves.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,18 @@ namespace embree
const Vec3fa& cp2 = vertex(index+2);
const Vec3fa& cp3 = vertex(index+3);

#if 0
const mic_f v0 = broadcast4to16f((float*)&cp0);
const mic_f v1 = broadcast4to16f((float*)&cp1);
const mic_f v2 = broadcast4to16f((float*)&cp2);
const mic_f v3 = broadcast4to16f((float*)&cp3);
#else
const mic_m m_4f = 0xf;
const mic_f v0 = permute<0,0,0,0>(uload16f(m_4f,(float*)&cp0));
const mic_f v1 = permute<0,0,0,0>(uload16f(m_4f,(float*)&cp1));
const mic_f v2 = permute<0,0,0,0>(uload16f(m_4f,(float*)&cp2));
const mic_f v3 = permute<0,0,0,0>(uload16f(m_4f,(float*)&cp3));
#endif

const mic_f b_min = min(min(v0,v1),min(v2,v3));
const mic_f b_max = max(max(v0,v1),max(v2,v3));
Expand Down

0 comments on commit 6e01b86

Please sign in to comment.