Rev 9237 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9237 | Rev 9512 | ||
---|---|---|---|
Line 351... | Line 351... | ||
351 | pop ebp |
351 | pop ebp |
Line 352... | Line 352... | ||
352 | 352 | ||
353 | 353 | ||
354 | 354 | ||
355 | ret |
355 | ret |
356 | align 16 |
356 | |
357 | ray_shd_l: |
357 | ray_shd_l: |
358 | ; in: |
358 | ; in: |
Line 390... | Line 390... | ||
390 | .y_max equ [ebp-78] |
390 | .y_max equ [ebp-78] |
391 | .y_min equ [ebp-80] |
391 | .y_min equ [ebp-80] |
392 | .dn equ [ebp-96] |
392 | .dn equ [ebp-96] |
393 | .dz equ [ebp-100] |
393 | .dz equ [ebp-100] |
394 | .y equ [ebp-104] |
394 | .y equ [ebp-104] |
395 | ; .cur_tri equ [ebp-108] |
395 | .startx equ [ebp-108] |
396 | .cnv equ [ebp-128] |
396 | .cnv equ [ebp-128] |
397 | .Rlen equ [ebp-128-16] |
397 | .Rlen equ [ebp-128-16] |
398 | .r1 equ [ebp-128-32] |
398 | .r1 equ [ebp-128-32] |
399 | .vect_t equ [ebp-128-48] |
399 | .vect_t equ [ebp-128-48] |
400 | .cur_tri equ [ebp-128-64] |
400 | .cur_tri equ [ebp-128-64] |
Line 429... | Line 429... | ||
429 | andps xmm0,[zero_hgst_dd] |
429 | andps xmm0,[zero_hgst_dd] |
430 | andps xmm1,[zero_hgst_dd] |
430 | andps xmm1,[zero_hgst_dd] |
431 | movaps .n1,xmm0 |
431 | movaps .n1,xmm0 |
432 | movaps .n2,xmm1 |
432 | movaps .n2,xmm1 |
433 | mov .lx1,eax |
433 | mov .lx1,eax |
- | 434 | ; mov .startx,eax |
|
434 | mov .lx2,ebx |
435 | mov .lx2,ebx |
435 | movlps .z1,xmm3 |
436 | movlps .z1,xmm3 |
Line 436... | Line 437... | ||
436 | 437 | ||
437 | sub ebx,eax |
438 | sub ebx,eax |
Line 544... | Line 545... | ||
544 | mov .aabb_mask,eax |
545 | mov .aabb_mask,eax |
545 | end if |
546 | end if |
546 | mov edi,[triangles_ptr] |
547 | mov edi,[triangles_ptr] |
547 | xor ecx,ecx |
548 | xor ecx,ecx |
548 | .nx_tri: ; next triangle |
549 | .nx_tri: ; next triangle |
- | 550 | ; mov eax,.lx1 |
|
- | 551 | ; cmp eax,.startx |
|
- | 552 | ; je @f ; prevent artifact borders on tri |
|
- | 553 | ; cmp eax,.lx2 ; NOT work as I want !! |
|
- | 554 | ; je @f |
|
Line 549... | Line 555... | ||
549 | 555 | ||
550 | cmp ecx,.cur_tri ; prevent self shadowing |
556 | cmp ecx,.cur_tri ; prevent self shadowing |
- | 557 | je .skipp |
|
551 | je .skipp |
558 | @@: |
552 | if 0 |
559 | if 0 |
553 | mov edi,ecx |
560 | mov edi,ecx |
554 | imul edi,[i12] |
561 | imul edi,[i12] |
555 | add edi,[triangles_ptr] |
562 | add edi,[triangles_ptr] |