1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-22 17:45:48 -05:00

Merge pull request #2013 from alariq/master

fix memset() arguments order in vkfftengine
This commit is contained in:
Edouard Griffiths 2024-03-11 04:20:50 +01:00 committed by GitHub
commit 8c7cb89c09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ vkFFTEngine::vkFFTEngine() :
m_reuse(true)
{
vkGPU = new VkGPU();
memset(vkGPU, sizeof(VkGPU), 0);
memset(vkGPU, 0, sizeof(VkGPU));
vkGPU->device_id = 0; // Could be set in GUI to support multiple GPUs
}
@ -64,9 +64,9 @@ void vkFFTEngine::configure(int n, bool inverse)
// Allocate and intialise plan
m_currentPlan->m_configuration = new VkFFTConfiguration();
memset(m_currentPlan->m_configuration, sizeof(VkFFTConfiguration), 0);
memset(m_currentPlan->m_configuration, 0, sizeof(VkFFTConfiguration));
m_currentPlan->m_app = new VkFFTApplication();
memset(m_currentPlan->m_app, sizeof(VkFFTApplication), 0);
memset(m_currentPlan->m_app, 0, sizeof(VkFFTApplication));
m_currentPlan->m_configuration->FFTdim = 1;
m_currentPlan->m_configuration->size[0] = n;
m_currentPlan->m_configuration->size[1] = 1;