SWDEV-470698 - fix formatting, add format check workflow (#657)

Bu işleme şunda yer alıyor:
Danylo Lytovchenko
2025-08-20 16:28:06 +02:00
işlemeyi yapan: GitHub
ebeveyn 5840940caa
işleme f7338717ae
1574 değiştirilmiş dosya ile 162972 ekleme ve 199346 silme
+9 -16
Dosyayı Görüntüle
@@ -63,8 +63,7 @@ OCLGLTexture::OCLGLTexture()
OCLGLTexture::~OCLGLTexture() {}
void OCLGLTexture::open(unsigned int test, char* units, double& conversion,
unsigned int deviceId) {
void OCLGLTexture::open(unsigned int test, char* units, double& conversion, unsigned int deviceId) {
// Initialize random number seed
srand((unsigned int)time(NULL));
@@ -76,22 +75,18 @@ void OCLGLTexture::open(unsigned int test, char* units, double& conversion,
// Build the kernel
if (0 == currentTest_) {
program_ = _wrapper->clCreateProgramWithSource(context_, 1, &strKernelui,
NULL, &error_);
program_ = _wrapper->clCreateProgramWithSource(context_, 1, &strKernelui, NULL, &error_);
} else {
program_ = _wrapper->clCreateProgramWithSource(context_, 1, &strKernelf,
NULL, &error_);
program_ = _wrapper->clCreateProgramWithSource(context_, 1, &strKernelf, NULL, &error_);
}
CHECK_RESULT((error_ != CL_SUCCESS),
"clCreateProgramWithSource() failed (%d)", error_);
CHECK_RESULT((error_ != CL_SUCCESS), "clCreateProgramWithSource() failed (%d)", error_);
error_ = _wrapper->clBuildProgram(program_, 1, &devices_[deviceId], NULL,
NULL, NULL);
error_ = _wrapper->clBuildProgram(program_, 1, &devices_[deviceId], NULL, NULL, NULL);
if (error_ != CL_SUCCESS) {
char programLog[1024];
_wrapper->clGetProgramBuildInfo(program_, devices_[deviceId],
CL_PROGRAM_BUILD_LOG, 1024, programLog, 0);
_wrapper->clGetProgramBuildInfo(program_, devices_[deviceId], CL_PROGRAM_BUILD_LOG, 1024,
programLog, 0);
printf("\n%s\n", programLog);
fflush(stdout);
}
@@ -105,12 +100,10 @@ void OCLGLTexture::run(void) {
bool retVal = false;
switch (currentTest_) {
case 0:
retVal = runTextureTest<unsigned int>(GL_RGBA32UI, GL_RGBA_INTEGER,
GL_UNSIGNED_INT);
retVal = runTextureTest<unsigned int>(GL_RGBA32UI, GL_RGBA_INTEGER, GL_UNSIGNED_INT);
break;
case 1:
retVal =
runTextureTest<unsigned char>(GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE);
retVal = runTextureTest<unsigned char>(GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE);
break;
case 2:
retVal = runTextureTest<short>(GL_RGBA16, GL_RGBA, GL_SHORT);