Skip to content
  • Iago Toral's avatar
    glsl-fs-pointcoord: add additional FS inputs · 4ce0887e
    Iago Toral authored
    We have recently found a regression in the i965 driver related to
    gl_PointCoord which was not being caught by this test. This patch
    changes the test slightly so that we can expose the problem for
    future regression testing.
    
    The problem occured because the driver was not using the correct
    number of FS inputs to to program a certain piece of HW state, as
    it did not account for some inputs that require special treatment,
    such as gl_PointCoord.
    
    However, this test was not able to find this because the hardware
    also has a restriction by which it needs to program, at least,
    2 FS inputs, so if we only have gl_PointCoord as input, which is
    what we had here, it would still work.
    
    This patch adds a couple of additional varyings so we have 3
    inputs in total, ensuring that we trigger the problem.
    
    Besides this, it also removes a sampler uniform that was not used
    in the fragment shader, and includes the GLSL version that was
    missing in the vertex shader.
    4ce0887e