fix tici debayer GPU page faults

This commit is contained in:
ZwX1616
2021-01-12 20:53:51 -08:00
committed by GitHub
parent 5221450f2d
commit f0cc78ea92
+1 -1
View File
@@ -57,7 +57,7 @@ __kernel void debayer10(const __global uchar * in,
cached[localOffset] = to_normal(raw_val);
// edges
if (x_global < 1 || x_global > RGB_WIDTH - 2 || y_global < 1 || y_global > RGB_WIDTH - 2) {
if (x_global < 1 || x_global > RGB_WIDTH - 2 || y_global < 1 || y_global > RGB_HEIGHT - 2) {
barrier(CLK_LOCAL_MEM_FENCE);
return;
} else {