Skip to content

Commit

Permalink
Final RT validation tweaks & hack enablement for ease of reproduction
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux committed Feb 3, 2025
1 parent b302635 commit bc56e3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ VkDevice createDevice(VkInstance instance, VkPhysicalDevice physicalDevice, uint
if (clusterrtSupported)
extensions.push_back(VK_NV_CLUSTER_ACCELERATION_STRUCTURE_EXTENSION_NAME);

extensions.push_back(VK_NV_RAY_TRACING_VALIDATION_EXTENSION_NAME);
if (rtvalidationSupported)
extensions.push_back(VK_NV_RAY_TRACING_VALIDATION_EXTENSION_NAME);

VkPhysicalDeviceFeatures2 features = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2 };
features.features.multiDrawIndirect = true;
Expand Down
2 changes: 1 addition & 1 deletion src/scenert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void buildCLAS(VkDevice device, const std::vector<Mesh>& meshes, const std::vect
// ON NV 3050 we have a single mesh with over 2000 clusters in Bistro scene
// if we keep the entire cluster set in the build, the GPU will hang during build
// we will print here the first cluster we skip from the mesh; not sure what is going on really.
if (accel.clusterReferencesCount > 2000)
if (accel.clusterReferencesCount > 2000 && getenv("NHACK") && atoi(getenv("NHACK")))
{
// IMPORTANT:
// This is definitely not a "broken" cluster: we can shift the range of clusters we build here by a couple clusters forward, and it still works
Expand Down

0 comments on commit bc56e3e

Please sign in to comment.