| 717 | } |
| 718 | |
| 719 | clfftStatus clfftSetPlanTransposeResult( clfftPlanHandle plHandle, clfftResultTransposed transposed ) |
| 720 | { |
| 721 | FFTRepo& fftRepo = FFTRepo::getInstance( ); |
| 722 | FFTPlan* fftPlan = NULL; |
| 723 | lockRAII* planLock = NULL; |
| 724 | |
| 725 | OPENCL_V( fftRepo.getPlan( plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) ); |
| 726 | scopedLock sLock( *planLock, _T( "clfftSetResultLocation" ) ); |
| 727 | |
| 728 | // Basic error checking on parameter |
| 729 | if( transposed >= ENDTRANSPOSED ) |
| 730 | return CLFFT_INVALID_ARG_VALUE; |
| 731 | |
| 732 | // If we modify the state of the plan, we assume that we can't trust any pre-calculated contents anymore |
| 733 | fftPlan->baked = false; |
| 734 | fftPlan->transposed = transposed; |
| 735 | |
| 736 | return CLFFT_SUCCESS; |
| 737 | } |
| 738 | |
| 739 | clfftStatus clfftGetTmpBufSize( const clfftPlanHandle plHandle, size_t* buffersize ) |
| 740 | { |