Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Mar 5, 2024
1 parent 4d716dd commit ec8df09
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/Dx/MemoryAllocatorDX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ bool Ray::Dx::MemoryAllocator::AllocateNewPool(const uint32_t size) {

const uint16_t pool_ndx = alloc_.AddPool(size);
assert(pool_ndx == pools_.size() - 1);
(void)pool_ndx;
}
return SUCCEEDED(hr);
}
Expand Down
1 change: 1 addition & 0 deletions internal/SceneCPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,7 @@ void Ray::Cpu::Scene::RebuildLightTree_nolock() {
if (use_wide_bvh_) {
const uint32_t root_node = FlattenBVH_r(light_nodes_.data(), 0, 0xffffffff, light_wnodes_);
assert(root_node == 0);
(void)root_node;
light_nodes_.clear();
}
}
2 changes: 2 additions & 0 deletions internal/SceneDX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void Ray::Dx::Scene::PrepareBindlessTextures_nolock() {

const uint32_t off = bindless_tex_data_.srv_descr_pool.Alloc(bindless_textures_.capacity()).first;
assert(off == 0);
(void)off;

ID3D12Device *device = ctx_->device();
ID3D12DescriptorHeap *srv_descr_heap = bindless_tex_data_.srv_descr_pool.heap();
Expand Down Expand Up @@ -263,6 +264,7 @@ std::pair<uint32_t, uint32_t> Ray::Dx::Scene::Build_HWRT_BLAS_nolock(const uint3
rt_blas_buffers_.emplace_back("RT BLAS Buffer", ctx_, eBufType::AccStructure, buf_size);
const uint16_t pool_index = rt_blas_mem_alloc_.AddPool(buf_size);
assert(pool_index == rt_blas_buffers_.size() - 1);
(void)pool_index;
// try to allocate again
mem_alloc = rt_blas_mem_alloc_.Alloc(AccStructAlignment, compact_size);
assert(mem_alloc.offset != 0xffffffff);
Expand Down
1 change: 1 addition & 0 deletions internal/SceneGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -2068,6 +2068,7 @@ inline void Ray::NS::Scene::RebuildLightTree_nolock() {
aligned_vector<light_wbvh_node_t> temp_light_wnodes;
const uint32_t root_node = FlattenBVH_r(temp_lnodes.data(), 0, 0xffffffff, temp_light_wnodes);
assert(root_node == 0);
(void)root_node;

light_wnodes_.Append(temp_light_wnodes.data(), temp_light_wnodes.size());
}
1 change: 1 addition & 0 deletions internal/SceneVK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ std::pair<uint32_t, uint32_t> Ray::Vk::Scene::Build_HWRT_BLAS_nolock(const uint3
rt_blas_buffers_.emplace_back("RT BLAS Buffer", ctx_, eBufType::AccStructure, buf_size);
const uint16_t pool_index = rt_blas_mem_alloc_.AddPool(buf_size);
assert(pool_index == rt_blas_buffers_.size() - 1);
(void)pool_index;
// try to allocate again
mem_alloc = rt_blas_mem_alloc_.Alloc(AccStructAlignment, uint32_t(compact_size));
assert(mem_alloc.offset != 0xffffffff);
Expand Down
1 change: 1 addition & 0 deletions internal/Vk/MemoryAllocatorVK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ bool Ray::Vk::MemoryAllocator::AllocateNewPool(const uint32_t size) {

const uint16_t pool_ndx = alloc_.AddPool(size);
assert(pool_ndx == pools_.size() - 1);
(void)pool_ndx;
}
return res == VK_SUCCESS;
}
Expand Down
3 changes: 1 addition & 2 deletions internal/simd/simd_vec_sse.h
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,8 @@ template <> class simd_vec<unsigned, 4> {
#endif
}
template <int i> force_inline void set(const unsigned v) {
const int ndx = (i & 3);
#if defined(USE_SSE41)
vec_ = _mm_insert_epi32(vec_, v, ndx);
vec_ = _mm_insert_epi32(vec_, v, i & 3);
#else
comp_[i] = v;
#endif
Expand Down

0 comments on commit ec8df09

Please sign in to comment.