1. 03 May, 2016 1 commit
  2. 27 Apr, 2016 2 commits
  3. 29 Mar, 2016 1 commit
  4. 27 Mar, 2016 1 commit
  5. 03 Mar, 2016 4 commits
  6. 19 Feb, 2016 1 commit
  7. 12 Feb, 2016 2 commits
  8. 08 Jan, 2016 1 commit
  9. 09 Dec, 2015 1 commit
  10. 03 Dec, 2015 1 commit
  11. 02 Dec, 2015 1 commit
  12. 28 Nov, 2015 1 commit
  13. 22 Nov, 2015 1 commit
  14. 28 Sep, 2015 2 commits
    • Eduardo Lima Mitev's avatar
      mesa: Move _mesa_base_tex_format() from teximage to glformats files · c6bf1cd1
      Eduardo Lima Mitev authored and Jason Ekstrand's avatar Jason Ekstrand committed
      
      
      This function will be needed as part of validating the combination of format,
      type and internal format of texture pixel operations, which happens in
      glformats files. Specifically, we want to be able to obtain the base format
      of a resolved effective internal format, to compare it with the original
      internal format passed.
      
      Also, since this function deals solely with GL formats, it fits better in
      glformats where the rest of similar format functionality rests.
      
      The function is moved as-is, without any modification.
      
      Cc: "11.0" <mesa-stable@lists.freedesktop.org>
      Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason.ekstrand@intel.com>
      Tested-by: Mark Janes's avatarMark Janes <mark.a.janes@intel.com>
      c6bf1cd1
    • Eduardo Lima Mitev's avatar
      mesa: Fix order of format+type and internal format checks for glTexImageXD ops · 15ab968f
      Eduardo Lima Mitev authored and Jason Ekstrand's avatar Jason Ekstrand committed
      
      
      The more specific GLES constrains should be checked after the general
      validation performed by _mesa_error_check_format_and_type(). This is also
      for consistency with the error checks order of glTexSubImage ops.
      
      v3: The change of order uncovered a bug that regresses a couple of piglit
      tests written against OpenGL-ES 1.1 spec, which expects an INVALID_VALUE
      instead of the INVALID_ENUM returned by _mesa_error_check_format_and_type()
      when an invalid format is passed to glTexImage2D. This version of the patch
      accounts for those cases.
      
      Fixes 1 dEQP test:
      * dEQP-GLES3.functional.negative_api.texture.teximage2d
      
      Cc: "11.0" <mesa-stable@lists.freedesktop.org>
      Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason.ekstrand@intel.com>
      Tested-by: Mark Janes's avatarMark Janes <mark.a.janes@intel.com>
      15ab968f
  15. 22 Sep, 2015 1 commit
  16. 19 Sep, 2015 1 commit
  17. 15 Sep, 2015 2 commits
  18. 27 Aug, 2015 2 commits
  19. 26 Aug, 2015 4 commits
  20. 25 Aug, 2015 2 commits
  21. 19 Aug, 2015 1 commit
  22. 17 Aug, 2015 2 commits
  23. 14 Aug, 2015 1 commit
  24. 13 Aug, 2015 1 commit
  25. 12 Aug, 2015 1 commit
  26. 05 Aug, 2015 2 commits
    • Eduardo Lima Mitev's avatar
      mesa: Add missing check of format and type in glTexSubImageXD on GLES 3.0 · 03b7221d
      Eduardo Lima Mitev authored
      
      
      Argument validation for glTexSubImageXD is missing a check of format and type
      against texture object's internal format when profile is OpenGL-ES 3.0+.
      
      This patch also groups together all format and type checks on GLES into a
      new function texture_format_error_check_gles(), to factorize similar
      code in texture_format_error_check().
      
      Fixes 2 dEQP tests:
      * dEQP-GLES3.functional.negative_api.texture.texsubimage2d
      * dEQP-GLES3.functional.negative_api.texture.texsubimage3d
      Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      03b7221d
    • Eduardo Lima Mitev's avatar
      mesa: Fix error returned by glCopyTexImage2D() upon an invalid internal format · 4b07e9a0
      Eduardo Lima Mitev authored
      
      
      Page 161 of the OpenGL-ES 3.1 (PDF) spec, and page 207 of the OpenGL 4.5 (PDF),
      both on section '8.6. ALTERNATE TEXTURE IMAGE SPECIFICATION COMMANDS', states:
      
          "An INVALID_ENUM error is generated if an invalid value is specified for
           internalformat".
      
      It is currently returning INVALID_OPERATION error because
      _mesa_get_read_renderbuffer_for_format() is called before the internalformat
      argument has been validated. To fix this, we move this call down the validation
      process, after _mesa_base_tex_format() has been called. _mesa_base_tex_format()
      effectively serves as a validator for the internal format.
      
      Fixes 1 dEQP test:
      * dEQP-GLES3.functional.negative_api.texture.copyteximage2d_invalid_format
      
      Fixes 1 piglit test:
      * spec@oes_compressed_etc1_rgb8_texture@basic
      Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
      Cc: 10.6 <mesa-stable@lists.freedesktop.org>
      4b07e9a0