Bug 76393 - [IVB/HSW] ogl-samples: gl-320-glsl-input-struct failure to run
Summary: [IVB/HSW] ogl-samples: gl-320-glsl-input-struct failure to run
Status: VERIFIED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 11:17 UTC by meng
Modified: 2014-07-18 02:10 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description meng 2014-03-20 11:17:03 UTC
System Environment:
--------------------------
Mesa:   (master)eaf9affa5ec9c5fd919e4207ab80b4677650ac67
Xserver:(master)xorg-server-1.15.99.901 Xf86_video_intel:	
Xf86_video_intel:(master)2.99.911
Kernel:	(drm-intel-nightly)git-ec45c7

Bug detailed description:
----------------------------
It’s not a regression, firstly test ogl-samples.

Pre-conditions:
 - build: https://github.com/g-truc/ogl-samples

Test-case: gl-320-glsl-input-struct

Expected outcome:
-----------------
https://github.com/g-truc/ogl-samples/blob/master/data/templates/nvidia/gl-320-glsl-input-struct.png

Actual outcome:
------------------------
- doesn't run
- 0:14(1): error: vertex shader input / attribute cannot have type `vertex'
Comment 1 Kenneth Graunke 2014-03-23 09:02:13 UTC
This is definitely not our bug.  Their vertex shader has:

#version 150 core
...
struct vertex
{
    vec2 Position;
    vec2 Texcoord;
};

in vertex Vertex;

The GLSL 1.50 specification very clearly disallows this:
"Vertex shader inputs can only be float, floating-point vectors, matrices, signed and unsigned integers and integer vectors. Vertex shader inputs can also form arrays of these types, but not structures."

This text is also present in GLSL 4.40.
Comment 2 meng 2014-07-18 02:10:57 UTC
Verified it.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.