mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-17 07:12:08 +08:00
fix tici debayer GPU page faults
old-commit-hash: f0cc78ea9294ecbfc2a351cd38398e4a1ab31a86
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user