| 565 | } |
| 566 | |
| 567 | clfftStatus clfftSetPlanDistance( clfftPlanHandle plHandle, size_t iDist, size_t oDist ) |
| 568 | { |
| 569 | FFTRepo& fftRepo = FFTRepo::getInstance( ); |
| 570 | FFTPlan* fftPlan = NULL; |
| 571 | lockRAII* planLock = NULL; |
| 572 | |
| 573 | OPENCL_V( fftRepo.getPlan( plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) ); |
| 574 | scopedLock sLock( *planLock, _T( "clfftSetPlanDistance" ) ); |
| 575 | |
| 576 | // If we modify the state of the plan, we assume that we can't trust any pre-calculated contents anymore |
| 577 | fftPlan->baked = false; |
| 578 | fftPlan->iDist = iDist; |
| 579 | fftPlan->oDist = oDist; |
| 580 | |
| 581 | return CLFFT_SUCCESS; |
| 582 | } |
| 583 | |
| 584 | clfftStatus clfftGetLayout( const clfftPlanHandle plHandle, clfftLayout* iLayout, clfftLayout* oLayout ) |
| 585 | { |