Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tests: add test for gl_FragDepth output (produces wrong result on ES …

…now)
  • Loading branch information...
commit c5537e67f38d5f722745e0869f1a84ab721ca0b0 1 parent 57287d2
@aras-p authored
View
5 tests/fragment/fragdepth-in.txt
@@ -0,0 +1,5 @@
+void main (out fixed4 ocol : COLOR0, out half oz : DEPTH)
+{
+ ocol = 0.5;
+ oz = 0.9;
+}
View
15 tests/fragment/fragdepth-out.txt
@@ -0,0 +1,15 @@
+void xlat_main( out vec4 ocol, out float oz );
+#line 1
+void xlat_main( out vec4 ocol, out float oz ) {
+ #line 3
+ ocol = vec4( 0.5);
+ oz = 0.9;
+}
+void main() {
+ vec4 xlt_ocol;
+ float xlt_oz;
+ xlat_main( xlt_ocol, xlt_oz);
+ gl_FragData[0] = vec4(xlt_ocol);
+ gl_FragDepth = float(xlt_oz);
+;
+}
View
15 tests/fragment/fragdepth-outES.txt
@@ -0,0 +1,15 @@
+void xlat_main( out lowp vec4 ocol, out mediump float oz );
+#line 1
+void xlat_main( out lowp vec4 ocol, out mediump float oz ) {
+ #line 3
+ ocol = vec4( 0.5);
+ oz = 0.9;
+}
+void main() {
+ lowp vec4 xlt_ocol;
+ mediump float xlt_oz;
+ xlat_main( xlt_ocol, xlt_oz);
+ gl_FragData[0] = vec4(xlt_ocol);
+ gl_FragDepth = float(xlt_oz);
+;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.