Skip to content

Commit 7c84683

Browse files
committed
Fix regression issue that raisr_opencl has very poor quality.
The root cause is using the incorrect filterbuff. Signed-off-by: Liang <xiaoxia.liang@intel.com>
1 parent be5740b commit 7c84683

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Library/Raisr_OpenCL.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ RNLERRORTYPE RaisrOpenCLInit(RaisrOpenCLContext *raisrOpenCLContext)
342342

343343
int rows = raisrOpenCLContext->gPatchSize * raisrOpenCLContext->gPatchSize;
344344
int alignedRows = 16 * (int)((rows + 15) / 16);
345-
uint64_t Aoffset = (uint64_t)filterBuffer & 0x3f;
346-
float *AFilters = &filterBuffer[16 - (int)(Aoffset / sizeof(float))];
345+
float *AFilters = &filterBuffer[0];
347346
int hashkeySize = raisrOpenCLContext->gQuantizationAngle *
348347
raisrOpenCLContext->gQuantizationStrength *
349348
raisrOpenCLContext->gQuantizationCoherence;
@@ -904,4 +903,4 @@ void RaisrOpenCLRelease(RaisrOpenCLContext *raisrOpenCLContext)
904903
clReleaseDevice(raisrOpenCLContext ->deviceID);
905904
free(raisrOpenCLContext ->priv);
906905
raisrOpenCLContext ->priv = NULL;
907-
}
906+
}

0 commit comments

Comments
 (0)