Skip to content

Commit

Permalink
More code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gboisse committed Jan 23, 2018
1 parent 7fd3f04 commit 5e44473
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RadeonRays/src/device/calc_intersection_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace RadeonRays
{
if (m_intersector_string != "fatbvh")
{
#if 0 // TODO: my hack (gboisse)
#if 0
m_intersector.reset(new IntersectorShortStack(m_device.get()));
m_intersector_string = "fatbvh";
#else
Expand Down
2 changes: 2 additions & 0 deletions RadeonRays/src/intersector/intersector_lds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ namespace RadeonRays
int num_bins = (nbins ? static_cast<int>(nbins->AsFloat()) : 64);
float traversal_cost = (tcost ? tcost->AsFloat() : 10.0f);

#if 0
if (type && type->AsString() == "qbvh")
{
use_qbvh = true;
}
#endif

if (builder && builder->AsString() == "sah")
{
Expand Down
3 changes: 1 addition & 2 deletions RadeonRays/src/kernels/GLSL/bvh2.comp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void intersect_main()
// Handle only working subset
if (index >= Numrays) return;

ray myRay = Rays[index]; // TODO: VK:- SC SPIR-V module not valid: OpStore Pointer <id> '136's type does not match Object <id> '137's type. (gboisse)
ray myRay = Rays[index];
vec3 invDir = safe_invdir(myRay.d.xyz);
vec3 oxInvDir = -myRay.o.xyz * invDir;

Expand Down Expand Up @@ -289,7 +289,6 @@ void intersect_main()
}
}

// TODO: what, why?!? (gboisse)
Intersection isect;
isect.padding.x = 667;
isect.padding.y = isect.padding.x;
Expand Down

0 comments on commit 5e44473

Please sign in to comment.