   RTCRayN* uniform ray_in = args->ray;
   RTCHitN* uniform potentialHit_in = args->potentialHit;
   uniform unsigned int N_in = args->N;
-  // FIXME: function may get called with zero mask
+  #warning FIXME: function may get called with zero valid mask
+  #warning FIXME: reject hit through *valid_in = 0 instead of ray_in.geomID = RTC_INVALID_GEOMETRY_ID;
 }@@
 
 @@{

  COMMENT RTCIntersectContext* context = args->context;
  COMMENT RTCRay4& ray_in = *(RTCRay4*) args->ray;
  RTCHit4* potentialHit = (RTCHit4*) args->potentialHit;
  #warning use potentialHit to access hit
  unsigned int N = args->N;
  assert(N == 4);
  if (none(valid)) return; // function may get called with zero mask

  COMMENT RTCIntersectContext* context = args->context;
  COMMENT RTCRay8& ray_in = *(RTCRay8*) args->ray;
  RTCHit8* potentialHit = (RTCHit8*) args->potentialHit;
  #warning FIXME: use potentialHit to access hit
  #warning FIXME: reject hit through *valid_in = 0 instead of ray_in.geomID = RTC_INVALID_GEOMETRY_ID;
  unsigned int N = args->N;
  assert(N == 8);
  if (none(valid)) return; // function may get called with zero mask
