File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2487,7 +2487,7 @@ static const char g_intersect_bvh2_lds_opencl[]= \
2487
2487
" \n" \
2488
2488
"#define GROUP_SIZE 64 \n" \
2489
2489
"#define STACK_SIZE 32 \n" \
2490
- "#define LDS_STACK_SIZE 8 \n" \
2490
+ "#define LDS_STACK_SIZE 16 \n" \
2491
2491
" \n" \
2492
2492
"// BVH node \n" \
2493
2493
"typedef struct \n" \
@@ -2699,13 +2699,10 @@ static const char g_intersect_bvh2_lds_opencl[]= \
2699
2699
" const float3 invDir = safe_invdir(my_ray); \n" \
2700
2700
" const float3 oxInvDir = -my_ray.o.xyz * invDir; \n" \
2701
2701
" \n" \
2702
- " // Intersection parametric distance \n" \
2703
- " float closest_t = my_ray.o.w; \n" \
2704
- " \n" \
2705
2702
" // Current node address \n" \
2706
2703
" uint addr = 0; \n" \
2707
- " // Current closest address \n" \
2708
- " uint closest_addr = INVALID_ADDR ; \n" \
2704
+ " // Intersection parametric distance \n" \
2705
+ " const float closest_t = my_ray.o.w ; \n" \
2709
2706
" \n" \
2710
2707
" uint stack_bottom = STACK_SIZE * index; \n" \
2711
2708
" uint sptr = stack_bottom; \n" \
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ TYPE DEFINITIONS
34
34
35
35
#define GROUP_SIZE 64
36
36
#define STACK_SIZE 32
37
- #define LDS_STACK_SIZE 8
37
+ #define LDS_STACK_SIZE 16
38
38
39
39
// BVH node
40
40
typedef struct
@@ -246,13 +246,10 @@ KERNEL void occluded_main(
246
246
const float3 invDir = safe_invdir (my_ray );
247
247
const float3 oxInvDir = - my_ray .o .xyz * invDir ;
248
248
249
- // Intersection parametric distance
250
- float closest_t = my_ray .o .w ;
251
-
252
249
// Current node address
253
250
uint addr = 0 ;
254
- // Current closest address
255
- uint closest_addr = INVALID_ADDR ;
251
+ // Intersection parametric distance
252
+ const float closest_t = my_ray . o . w ;
256
253
257
254
uint stack_bottom = STACK_SIZE * index ;
258
255
uint sptr = stack_bottom ;
You can’t perform that action at this time.
0 commit comments