1. 28 Feb, 2011 1 commit
  2. 18 Feb, 2011 3 commits
  3. 16 Feb, 2011 1 commit
  4. 11 Feb, 2011 4 commits
  5. 10 Feb, 2011 1 commit
  6. 09 Feb, 2011 2 commits
  7. 01 Feb, 2011 3 commits
  8. 31 Jan, 2011 1 commit
  9. 28 Jan, 2011 1 commit
  10. 26 Jan, 2011 2 commits
    • Map D3D calls and HLSL shaders back to GLES2 calls and GLSL ES shaders in PIX. · 0f4cefe9
      apatrick@chromium.org authored
      This makes debugging and profiling using PIX a lot more convenient. The top level of events are the GLES calls with their arguments. Those can be expanded to see the D3D calls that were issued for a particular GLES call.
      
      When PIX is attached, the shaders are saved out to temporary files and referenced from the translated HLSL shaders via #line directives. This enabled source level debugging of the original GLSL from PIX for pixel and vertex shaders. The HLSL is also saved to a temporary file so that intrinsic functions like texture2D can be stepped into.
      
      It also avoids creating a text file in the current working directory, which has continued to be an issue.
      
      I made the dependency on d3d9.dll static again so it can be accessed by GetModuleHandle witihin DllMain.
      
      I added an EVENT macro that issues D3DPERF_BeginEvent and D3DPERF_EndEvent around a C++ block. I replaced TRACE with EVENT for all the entry points.
      
      I removed the tracing of shader source since the source is visible in PIX.
      
      The means by which the filename of the temporary shader file is passed into the shader compiler is a little clunky. I did it that way to avoid changing the function signatures and breaking folks using the translator.
      
      I plan to make the compiler respect #pragma optimize so that optimization can be disabled for debugging purposes. For now it just disables shader optimization in debug builds of ANGLE.
      
      
      Review URL: http://codereview.appspot.com/3945043
      
      git-svn-id: https://angleproject.googlecode.com/svn/trunk@541 736b8ea6-26fd-11df-bfd4-992fa37f6226
    • Fix issues with preprocessor on very malformed shaders · e9874058
      daniel@transgaming.com authored
      Trac #15236,#15237,#15238,#15239
      
      Error out instead of continued processing when we already know the preprocessor directives are bungled.
      Generally be more careful about the order in which cpp->elsetracker and cpp->ifdepth are checked/operated on.
      Validate all accesses of cpp->elsedepth to ensure no out of bounds accesses occur.
      Also slipped in a few indentation/spacing fixes.
      
      Signed-off-by: Nicolas Capens
      
      git-svn-id: https://angleproject.googlecode.com/svn/trunk@540 736b8ea6-26fd-11df-bfd4-992fa37f6226
  11. 25 Jan, 2011 1 commit
  12. 22 Jan, 2011 2 commits
  13. 19 Jan, 2011 2 commits
  14. 18 Jan, 2011 1 commit
  15. 14 Jan, 2011 2 commits
  16. 13 Jan, 2011 1 commit
    • Review: http://codereview.appspot.com/3969041/ · f759f7a4
      apatrick@chromium.org authored
      Fixed dangling pointers in Surface.
      
      When the surface is reset, either because of device lost or a window
      resize, and any of these fail:
      
      CreateDepthStencilSurface
      CreateTexture
      
      Some subsset of mSwapChain and/or mDepthStencil would be left
      uninitialized. This seemed to happen frequently on WIndows XP boxes.
      
      Example crash dumps:
      
      Thread 0 *CRASHED* ( EXCEPTION_ACCESS_VIOLATION_READ @
      0xffffffff800f0004 )
      
      0x014f1aac       [libegl.dll     -
      surface.cpp:479]        egl::Surface::getDepthStencil()
      0x1001324c       [libglesv2.dll  -
      context.cpp:301]        gl::Context::makeCurrent(egl::Display *,egl::Surface *)
      0x10018c7e       [libglesv2.dll  - main.cpp:85] gl::makeCurrent(gl::Context
      *,egl::Display *,egl::Surface *)
      0x10017366       [libglesv2.dll  - context.cpp:3524]    glMakeCurrent
      0x014f607c       [libegl.dll     - libegl.cpp:884]      eglMakeCurrent
      
      Thread 0 *CRASHED* ( EXCEPTION_ACCESS_VIOLATION_READ @
      0xffffffffe95b5a5d )
      
      0x01131a14       [libegl.dll     - surface.cpp:433]     egl::Surface::swap()
      0x01136310       [libegl.dll     - libegl.cpp:1043]     eglSwapBuffers
      0x0214ac64       [chrome.dll     -
      gl_context_egl.cc:240]  gfx::NativeViewEGLContext::SwapBuffers()
      
      
      git-svn-id: https://angleproject.googlecode.com/svn/trunk@531 736b8ea6-26fd-11df-bfd4-992fa37f6226
  17. 08 Jan, 2011 5 commits
  18. 06 Jan, 2011 3 commits
  19. 17 Dec, 2010 2 commits
  20. 15 Dec, 2010 2 commits