diff --git a/src/libcamera/software_isp/gpu_pipeline_shader_pass_blc_normalise.cpp b/src/libcamera/software_isp/gpu_pipeline_shader_pass_blc_normalise.cpp
index c5c19f85d..cc9969beb 100644
--- a/src/libcamera/software_isp/gpu_pipeline_shader_pass_blc_normalise.cpp
+++ b/src/libcamera/software_isp/gpu_pipeline_shader_pass_blc_normalise.cpp
@@ -121,8 +121,8 @@ void GpuIspShaderPassBlcNormalise::setShaderVariableValues(eGLImage &eglImageIn,
 	GLfloat firstRed[] = { firstRed_x_, firstRed_y_ };
 	GLfloat imgSize[] = { (GLfloat)passInputCfg_.size.width,
 			      (GLfloat)passInputCfg_.size.height };
-	GLfloat Step[] = { static_cast<float>(bytesPerPixel_) / (passInputCfg_.stride - 1),
-			   1.0f / (passInputCfg_.size.height - 1) };
+	GLfloat Step[] = { static_cast<float>(bytesPerPixel_) / (passInputCfg_.stride),
+			   1.0f / (passInputCfg_.size.height) };
 	GLfloat Stride = (GLfloat)passInputCfg_.size.width / (shaderStridePixels_ / bytesPerPixel_);
 	/*
 	 * Scale input to output size, keeping the aspect ratio and preferring
