1. 31 May, 2019 2 commits
    • BuiltInPointCoord implementation · 95b1db96
      Alexis Hetu authored
      BuiltInPointCoord is defined as:
      
      "The following formulas are used to evaluate s and t:
      
      s = 1/2 + (xp - xf) / size
      t = 1/2 + (yp - yf) / size
      
      where size is the point’s size; (xp,yp) is the location at which the
      point sprite coordinates are evaluated - this may be the framebuffer
      coordinates of the fragment center, or the location of a sample; and
      (xf,yf) is the exact, unrounded framebuffer coordinate of the vertex
      for the point."
      
      So it was implemented by writing (xf,yf) in SetupRoutine, where this
      information is present and using the fragment's x and y coordinates
      as (xp,yp), which passes the test.
      
      Tests: dEQP-VK.glsl.builtin_var.simple.pointcoord
      
      Change-Id: I9146349bcce0f7c31dd0464c0f210a7306d5d033
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31992
      Presubmit-Ready: Alexis Hétu <sugoi@google.com>
      Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
      Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
    • 32 bit compilation fixes for Visual Studio · 5e3c9d53
      Alexis Hetu authored
      This cl fixes all issues related to building Vulkan using the x86 compiler in Visual Studio:
      - Added dummy function to prevent compiler crash in VkGetProcAddress.cpp
      - Added missing WIN32 check in SwiftShader's Vulkan unit tests
      - Removed alignment code which broke Win32 DLL. Removing all of it should work on all other
        platforms as well.
      
      Minor nit fix:
      - Renamed VkWrapper to VkNonDispatchableHandle, which is a more accurate name.
      
      Bug b/129979580
      
      Change-Id: Ib2bf305433e9aae71ff6f9d796fb86bc7ea733b0
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31609Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
      Presubmit-Ready: Alexis Hétu <sugoi@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
  2. 30 May, 2019 2 commits
  3. 29 May, 2019 11 commits
  4. 28 May, 2019 23 commits
  5. 27 May, 2019 2 commits