Overview

Hardware tgl
Architecture m64
Status fail
Matches Expectations Indicates whether the test status matches the status that CI expects for the test
fail
Time 0.043877

See also historical results for this test.

stdout

/tmp/build_root/m64/lib/piglit/bin/ext_transform_feedback-structs struct-struct run -auto -fbo
piglit: debug: Requested an OpenGL 3.2 Core Context, and received a matching 4.6 context

Probe color at (0,0)
  Expected: 0 255 0 255
  Observed: 0 0 0 0
Vertex shader:
#version 150
#define DECLARE_VARYING(DIR, TYPE, NAME) flat DIR TYPE NAME
#define VARYING(NAME) NAME
struct S { int a; float b; };
struct T { float c; int d; };
struct U { S e; T f; };
in vec4 pos;
DECLARE_VARYING(out, U, v);
void main()
{
  gl_Position = pos;
  VARYING(v).e.a = 1;
  VARYING(v).e.b = 2.0;
  VARYING(v).f.c = 3.0;
  VARYING(v).f.d = 4;
}

Fragment shader:
#version 150
#define DECLARE_VARYING(DIR, TYPE, NAME) flat DIR TYPE NAME
#define VARYING(NAME) NAME
struct S { int a; float b; };
struct T { float c; int d; };
struct U { S e; T f; };
DECLARE_VARYING(in, U, v);
out vec4 color;
void main()
{
  bool pass = true;
  if (VARYING(v).e.a != 1) pass = false;
  if (VARYING(v).e.b != 2.0) pass = false;
  if (VARYING(v).f.c != 3.0) pass = false;
  if (VARYING(v).f.d != 4) pass = false;
  if (pass)
    color = vec4(0.0, 1.0, 0.0, 1.0);
  else
    color = vec4(1.0, 0.0, 0.0, 1.0);
}

stderr

XXX: resource creation failed


pid: [274596]
start time: 1616771967.9757357
end time: 1616771968.0196123