1. 06 Nov, 2019 5 commits
    • Arcady Goldmints-Orlov's avatar
      arb_gl_spirv: add xfb tests for lines and triangles · bad99280
      Arcady Goldmints-Orlov authored
      
      
      This adds some simple tests for primitives other than points.
      Acked-by: Caio Oliveira's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
      bad99280
    • Alejandro Piñeiro's avatar
      arb_gl_spirv: add xfb tests · 22646831
      Alejandro Piñeiro authored and Arcady Goldmints-Orlov's avatar Arcady Goldmints-Orlov committed
      
      
      Testing different things, from very basic types, to something more
      complex like arrays of blocks where just one member is captured.
      
      All of them are VS, as it is the most common use case.
      
      v2: Update tests to use new xfb probe syntax
      Signed-off-by: Arcady Goldmints-Orlov's avatarArcady Goldmints-Orlov <agoldmints@igalia.com>
      Reviewed-by: Caio Oliveira's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
      22646831
    • Alejandro Piñeiro's avatar
      shader_runner: add xfb query object support · 42136858
      Alejandro Piñeiro authored and Arcady Goldmints-Orlov's avatar Arcady Goldmints-Orlov committed
      
      
      This commit adds query objects for GL_PRIMITIVES_GENERATED and
      GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN, and only for xfb
      drawing. Those query objects are created implicitly during xfb
      drawing.
      
      We don't add general query object support for two reasons:
        * Right now only xfb tests would be using it.
      
        * Adding general support would make the test section more
          complicated, as we would need to add beginquery/endquery like
          commands, making [test] section too much of a GL pseudocode.
      
      If in the future we need general query object support, we can just
      expand this.
      
      It also add them always for any xfb drawing, instead of
      conditionally. Again, to make things easier.
      
      So it introduces just one [test] command, that can be used as:
      
        * "verify query_object GL_PRIMITIVES_GENERATED <integer value>"
      
        * "verify query_object GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN <integer_value>"
      
      v2: Create a helper function to deal with the array of query object names.
      Signed-off-by: Arcady Goldmints-Orlov's avatarArcady Goldmints-Orlov <agoldmints@igalia.com>
      Reviewed-by: Caio Oliveira's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
      42136858
    • Alejandro Piñeiro's avatar
      shader_runner: add xfb testing support · 728dde0e
      Alejandro Piñeiro authored and Arcady Goldmints-Orlov's avatar Arcady Goldmints-Orlov committed
      
      
      Limited to capture doubles and floats, for simplicity. This patch
      introduces the following [test] commands:
      
         * "xfb buffer object <n_buffer> <size>": generates and allocates
           one TRANSFORM_FEEDBACK_BUFFER buffer object, with declared buffer
           <n_buffer> (so xfb_buffer = <n_buffer> on the shader) and a given
           <size> in bytes.
      
         * "xfb draw arrays <mode> <first> <count>": equivalent to the
           already existing command "draw arrays", but under a transform
           feedback operation, and enabling GL_RASTERIZER_DISCARD.
      
         * "probe xfb buffer <element_type> <n_buffer> <n_components> <value>":
           compares <n_components> of the expected value buffer with the xfb
           buffer <n_buffer>. It does a comparison using <element_type>,
           being the allowed values "float" or "double". Both expected
           buffer and the xfb buffer are expected to be already allocated,
           and of the proper size.
      
      v2: fix wrong sizeof value when using snprintf (Caio Marcelo)
      
      v3: Change the xfb probing syntax to not use an "expected buffer"
          and instead probe the xfb buffer directly
      Signed-off-by: Arcady Goldmints-Orlov's avatarArcady Goldmints-Orlov <agoldmints@igalia.com>
      Reviewed-by: Caio Oliveira's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
      728dde0e
    • Alejandro Piñeiro's avatar
      shader_runner: add support for glGetProgram queries · 4ff6e9d3
      Alejandro Piñeiro authored and Arcady Goldmints-Orlov's avatar Arcady Goldmints-Orlov committed
      
      
      Similar to the already existing verify program_interface_query, but
      with the glGetProgramiv queries.
      
      Useful, for example, to verify the current number of active uniforms
      (via GL_ACTIVE_UNIFORMS).
      
      Note that now there are two ways to verify link success. With the
      already existing "link succes" shader runner query, or using this one:
      
         vefiry program_query GL_LINK_STATUS GL_TRUE
      
      Although internally they are checked in a different way. It is pending
      to check if there are corner cases where they return a different
      value.
      
      v2: Add GL_LINE_STRIP and GL_TRIANGLE_STRIP as valid results for the
          query (Antia Puentes).
      
      v3: add special error case for GL_COMPUTE_WORK_GROUP_SIZE, and add
          TODO comment (Caio Marcelo)
      Signed-off-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
      Signed-off-by: Antía Puentes's avatarAntia Puentes <apuentes@igalia.com>
      Reviewed-by: Caio Oliveira's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
      4ff6e9d3
  2. 05 Nov, 2019 1 commit
  3. 01 Nov, 2019 4 commits
  4. 30 Oct, 2019 2 commits
  5. 28 Oct, 2019 1 commit
  6. 27 Oct, 2019 1 commit
  7. 24 Oct, 2019 2 commits
  8. 23 Oct, 2019 1 commit
  9. 17 Oct, 2019 1 commit
  10. 16 Oct, 2019 1 commit
  11. 12 Oct, 2019 2 commits
  12. 11 Oct, 2019 1 commit
  13. 10 Oct, 2019 1 commit
  14. 08 Oct, 2019 1 commit
  15. 03 Oct, 2019 2 commits
  16. 01 Oct, 2019 2 commits
  17. 30 Sep, 2019 4 commits
  18. 27 Sep, 2019 4 commits
  19. 26 Sep, 2019 1 commit
  20. 23 Sep, 2019 1 commit
  21. 18 Sep, 2019 1 commit
  22. 17 Sep, 2019 1 commit