From e11bedb9f5d758d6ccc16eb8b02be8d7498a31db Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 13 Apr 2022 09:39:31 +0300 Subject: [PATCH] intel/fs: add a note on possible optimization of root node address Signed-off-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_nir_rt_builder.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/compiler/brw_nir_rt_builder.h b/src/intel/compiler/brw_nir_rt_builder.h index 9d5d2eb2353..c7eb23f3244 100644 --- a/src/intel/compiler/brw_nir_rt_builder.h +++ b/src/intel/compiler/brw_nir_rt_builder.h @@ -919,6 +919,9 @@ brw_nir_rt_acceleration_structure_to_root_node(nir_builder *b, * * But if the acceleration structure pointer is NULL, then we should return * NULL as root node pointer. + * + * TODO: we could optimize this by assuming that for a given version of the + * BVH, we can find the root node at a given offset. */ nir_ssa_def *root_node_ptr, *null_node_ptr; nir_push_if(b, nir_ieq(b, as_addr, nir_imm_int64(b, 0)));