head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC7:1.1.1.1
	netbsd-11-0-RC6:1.1.1.1
	netbsd-11-0-RC5:1.1.1.1
	netbsd-11-0-RC4:1.1.1.1
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	netbsd-11:1.1.1.1.0.10
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	netbsd-8-3-RELEASE:1.1.1.1
	netbsd-9-4-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	netbsd-10:1.1.1.1.0.8
	netbsd-10-base:1.1.1.1
	netbsd-9-3-RELEASE:1.1.1.1
	netbsd-9-2-RELEASE:1.1.1.1
	netbsd-9-1-RELEASE:1.1.1.1
	netbsd-8-2-RELEASE:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1
	netbsd-9-0-RC2:1.1.1.1
	netbsd-9-0-RC1:1.1.1.1
	netbsd-9:1.1.1.1.0.6
	netbsd-9-base:1.1.1.1
	netbsd-8-1-RELEASE:1.1.1.1
	netbsd-8-1-RC1:1.1.1.1
	mesa-demos-8-4-0:1.1.1.1
	netbsd-7-2-RELEASE:1.1.1.1.2.2
	netbsd-8-0-RELEASE:1.1.1.1
	netbsd-8-0-RC2:1.1.1.1
	netbsd-8-0-RC1:1.1.1.1
	netbsd-7-1-2-RELEASE:1.1.1.1.2.2
	netbsd-7-1-1-RELEASE:1.1.1.1.2.2
	netbsd-8:1.1.1.1.0.4
	netbsd-8-base:1.1.1.1
	netbsd-7-1:1.1.1.1.2.2.0.4
	netbsd-7-1-RELEASE:1.1.1.1.2.2
	netbsd-7-1-RC2:1.1.1.1.2.2
	netbsd-7-1-RC1:1.1.1.1.2.2
	netbsd-7-0-2-RELEASE:1.1.1.1.2.2
	netbsd-7-0-1-RELEASE:1.1.1.1.2.2
	netbsd-7-0:1.1.1.1.2.2.0.2
	netbsd-7-0-RELEASE:1.1.1.1.2.2
	netbsd-7-0-RC3:1.1.1.1.2.2
	netbsd-7-0-RC2:1.1.1.1.2.2
	netbsd-7-0-RC1:1.1.1.1.2.2
	netbsd-7:1.1.1.1.0.2
	mesa-demos-8-2-0:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2014.12.16.06.01.20;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;
commitid	JHkLWGb9LgMxce2y;

1.1.1.1
date	2014.12.16.06.01.20;	author mrg;	state Exp;
branches
	1.1.1.1.2.1;
next	;
commitid	JHkLWGb9LgMxce2y;

1.1.1.1.2.1
date	2014.12.16.06.01.20;	author snj;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	HBvt2MfSKnG9W63y;

1.1.1.1.2.2
date	2014.12.23.02.55.05;	author snj;	state Exp;
branches;
next	;
commitid	HBvt2MfSKnG9W63y;


desc
@@


1.1
log
@Initial revision
@
text
@/*
 * Vertex shader test.
 * Uses all conventional attributes and 15 generic attributes to print
 * their values, using printMESA() extension function, to the debugger
 * to compare them with the actual passed-in values.
 * Use different types for generic attributes to check matrix handling.
 *
 * Author: Michal Krol
 */

#version 110

#extension MESA_shader_debug: require

attribute vec4 Attribute1;
attribute vec4 Attribute2;
attribute vec4 Attribute3;
attribute float Attribute4;
attribute vec2 Attribute5;
attribute vec3 Attribute6;
attribute mat2 Attribute7;
attribute mat3 Attribute9;
attribute mat4 Attribute12;

void main ()
{
   //
   // Do some legal stuff.
   //
   gl_Position = gl_ModelViewMatrix * gl_Vertex;
   gl_FrontColor = vec4 (1.0);

   //
   // Conventional attributes - except for gl_Vertex.
   //
   printMESA (gl_Color);
   printMESA (gl_SecondaryColor);
   printMESA (gl_Normal);
   printMESA (gl_MultiTexCoord0);
   printMESA (gl_MultiTexCoord1);
   printMESA (gl_MultiTexCoord2);
   printMESA (gl_MultiTexCoord3);
   printMESA (gl_MultiTexCoord4);
   printMESA (gl_MultiTexCoord5);
   printMESA (gl_MultiTexCoord6);
   printMESA (gl_MultiTexCoord7);
   printMESA (gl_FogCoord);

   //
   // Generic attributes - attrib with index 0 is not used because it would
   // alias with gl_Vertex, which is not allowed.
   //
   printMESA (Attribute1);
   printMESA (Attribute2);
   printMESA (Attribute3);
   printMESA (Attribute4);
   printMESA (Attribute5);
   printMESA (Attribute6);
   printMESA (Attribute7);
   printMESA (Attribute9);
   printMESA (Attribute12);

   //
   // Vertex position goes last.
   //
   printMESA (gl_Vertex);
}

@


1.1.1.1
log
@initial import of mesa-demos-8.2.0
@
text
@@


1.1.1.1.2.1
log
@file vstest.txt was added on branch netbsd-7 on 2014-12-23 02:55:05 +0000
@
text
@d1 68
@


1.1.1.1.2.2
log
@Apply patch (requested by mrg in ticket 341):
Add split-out versions of glu-9.0.0, glw-8.0.0, and mesa-demos-8.2.0.
@
text
@a0 68
/*
 * Vertex shader test.
 * Uses all conventional attributes and 15 generic attributes to print
 * their values, using printMESA() extension function, to the debugger
 * to compare them with the actual passed-in values.
 * Use different types for generic attributes to check matrix handling.
 *
 * Author: Michal Krol
 */

#version 110

#extension MESA_shader_debug: require

attribute vec4 Attribute1;
attribute vec4 Attribute2;
attribute vec4 Attribute3;
attribute float Attribute4;
attribute vec2 Attribute5;
attribute vec3 Attribute6;
attribute mat2 Attribute7;
attribute mat3 Attribute9;
attribute mat4 Attribute12;

void main ()
{
   //
   // Do some legal stuff.
   //
   gl_Position = gl_ModelViewMatrix * gl_Vertex;
   gl_FrontColor = vec4 (1.0);

   //
   // Conventional attributes - except for gl_Vertex.
   //
   printMESA (gl_Color);
   printMESA (gl_SecondaryColor);
   printMESA (gl_Normal);
   printMESA (gl_MultiTexCoord0);
   printMESA (gl_MultiTexCoord1);
   printMESA (gl_MultiTexCoord2);
   printMESA (gl_MultiTexCoord3);
   printMESA (gl_MultiTexCoord4);
   printMESA (gl_MultiTexCoord5);
   printMESA (gl_MultiTexCoord6);
   printMESA (gl_MultiTexCoord7);
   printMESA (gl_FogCoord);

   //
   // Generic attributes - attrib with index 0 is not used because it would
   // alias with gl_Vertex, which is not allowed.
   //
   printMESA (Attribute1);
   printMESA (Attribute2);
   printMESA (Attribute3);
   printMESA (Attribute4);
   printMESA (Attribute5);
   printMESA (Attribute6);
   printMESA (Attribute7);
   printMESA (Attribute9);
   printMESA (Attribute12);

   //
   // Vertex position goes last.
   //
   printMESA (gl_Vertex);
}

@


