mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
radv: Add raytracing pipeline properties.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12592>
This commit is contained in:
parent
0f090a51b3
commit
8312b2232b
2 changed files with 28 additions and 0 deletions
|
|
@ -90,4 +90,9 @@
|
|||
/* Number of invocations in each subgroup. */
|
||||
#define RADV_SUBGROUP_SIZE 64
|
||||
|
||||
/* The spec requires this to be 32. */
|
||||
#define RADV_RT_HANDLE_SIZE 32
|
||||
|
||||
#define RADV_MAX_HIT_ATTRIB_SIZE 32
|
||||
|
||||
#endif /* RADV_CONSTANTS_H */
|
||||
|
|
|
|||
|
|
@ -1718,6 +1718,16 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
features->shaderIntegerDotProduct = true;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR: {
|
||||
VkPhysicalDeviceRayTracingPipelineFeaturesKHR *features =
|
||||
(VkPhysicalDeviceRayTracingPipelineFeaturesKHR *)ext;
|
||||
features->rayTracingPipeline = true;
|
||||
features->rayTracingPipelineShaderGroupHandleCaptureReplay = false;
|
||||
features->rayTracingPipelineShaderGroupHandleCaptureReplayMixed = false;
|
||||
features->rayTracingPipelineTraceRaysIndirect = false;
|
||||
features->rayTraversalPrimitiveCulling = false;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -2469,6 +2479,19 @@ radv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
|
|||
props->integerDotProductAccumulatingSaturating64BitMixedSignednessAccelerated = false;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR: {
|
||||
VkPhysicalDeviceRayTracingPipelinePropertiesKHR *props =
|
||||
(VkPhysicalDeviceRayTracingPipelinePropertiesKHR *)ext;
|
||||
props->shaderGroupHandleSize = RADV_RT_HANDLE_SIZE;
|
||||
props->maxRayRecursionDepth = 31; /* Minimum allowed for DXR. */
|
||||
props->maxShaderGroupStride = 16384; /* dummy */
|
||||
props->shaderGroupBaseAlignment = 16;
|
||||
props->shaderGroupHandleCaptureReplaySize = 16;
|
||||
props->maxRayDispatchInvocationCount = 1024 * 1024 * 64;
|
||||
props->shaderGroupHandleAlignment = 16;
|
||||
props->maxRayHitAttributeSize = RADV_MAX_HIT_ATTRIB_SIZE;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue