qcam: assets: shader: bayer_8.frag: Add precision

The OpenGL ES shading language has no default precision declared
implicitly for floats in fragment shaders. The lack of an explicit
default precision results in shader compilation errors.

Specify a default precision of mediump for floats. This matches the
other fragment shaders, and is guaranteed by the OpenGL ES shader
language specification to be supported by all devices, while the higher
precision highp is optional.

Signed-off-by: Kunal Agarwal <kunalagarwal1072002@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Kunal Agarwal
2022-06-29 00:42:38 +05:30
committed by Laurent Pinchart
parent d010a51aa4
commit 5bb87f0f3a

View File

@@ -15,6 +15,9 @@ Copyright (C) 2021, Linaro
*/
//Pixel Shader
#ifdef GL_ES
precision mediump float;
#endif
/** Monochrome RGBA or GL_LUMINANCE Bayer encoded texture.*/
uniform sampler2D tex_y;