diff --git a/include/libcamera/internal/software_isp/debayer_params.h b/include/libcamera/internal/software_isp/debayer_params.h
index 5a0d9438f..d5dad1a98 100644
--- a/include/libcamera/internal/software_isp/debayer_params.h
+++ b/include/libcamera/internal/software_isp/debayer_params.h
@@ -58,6 +58,7 @@ struct DebayerParams {
 	 */
 	Matrix<float, 3, 3> ccm;
 	RGB<float> blackLevel;
+	float gamma;
 };
 
 } /* namespace libcamera */
diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp
index 49482d711..ea5a86b20 100644
--- a/src/ipa/simple/algorithms/lut.cpp
+++ b/src/ipa/simple/algorithms/lut.cpp
@@ -147,6 +147,8 @@ void Lut::prepare(IPAContext &context,
 			params->gammaLut[i] = gammaTable[i / div];
 		}
 	}
+
+	params->gamma = context.configuration.gamma;
 }
 
 void Lut::process([[maybe_unused]] IPAContext &context,
diff --git a/src/libcamera/software_isp/debayer.cpp b/src/libcamera/software_isp/debayer.cpp
index 16bf7a218..7e8d81c09 100644
--- a/src/libcamera/software_isp/debayer.cpp
+++ b/src/libcamera/software_isp/debayer.cpp
@@ -110,6 +110,11 @@ namespace libcamera {
  * \brief Blacklevel gains for the GPUISP
  */
 
+/**
+ * \var DebayerParams::gamma
+ * \brief Gamma value for the GPUISP
+ */
+
 /**
  * \class Debayer
  * \brief Base debayering class
