Skip to content
Snippets Groups Projects
  1. Jun 26, 2012
  2. Jun 25, 2012
  3. Jun 23, 2012
  4. Jun 22, 2012
    • Laurent Carlier's avatar
      automake: add missing inclusion of GL headers · 78ac9af5
      Laurent Carlier authored and Brian Paul's avatar Brian Paul committed
      
      Building fail when GL headers are not installed in the system,
      so add inclusion of these headers.
      
      Signed-off-by: default avatarBrian Paul <brianp@vmware.com>
      78ac9af5
    • Brian Paul's avatar
      mesa: #define fprintf to be __mingw_fprintf() on Mingw32 · cbffaf20
      Brian Paul authored
      
      So that formats such as "%llx" are understood.
      
      Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
      cbffaf20
    • Brian Paul's avatar
      fe68af6e
    • Tom Stellard's avatar
      clover: Add --with-clang-libdir option and verify CLANG_RESOURCE_DIR · ea76f033
      Tom Stellard authored
      $CLANG_RESOURCE_DIR is the directory that contains all resources
      needed by clang to compile programs.  When clover uses clang to
      compile kernels it needs to specify a resource dir, so that clang
      can find its internal headers (e.g. stddef.h).
      
      clang defines $CLANG_RESOURCE_DIR as $CLANG_LIBDIR/clang/$CLANG_VERSION
      
      This patch adds the --with-clang-libdir option in order to accommodate
      clang intalls to non-standard locations, and it also adds a check
      to the configure script to verify that $CLANG_RESOURCE_DIR/include
      contains the necessary header files.
      ea76f033
    • Paul Berry's avatar
      i965: Compute dFdy() correctly for FBOs. · 82d25963
      Paul Berry authored
      
      On i965, dFdx() and dFdy() are computed by taking advantage of the
      fact that each consecutive set of 4 pixels dispatched to the fragment
      shader always constitutes a contiguous 2x2 block of pixels in a fixed
      arrangement known as a "sub-span".  So we calculate dFdx() by taking
      the difference between the values computed for the left and right
      halves of the sub-span, and we calculate dFdy() by taking the
      difference between the values computed for the top and bottom halves
      of the sub-span.
      
      However, there's a subtlety when FBOs are in use: since FBOs use a
      coordinate system where the origin is at the upper left, and window
      system framebuffers use a coordinate system where the origin is at the
      lower left, the computation of dFdy() needs to be negated for FBOs.
      
      This patch modifies the fragment shader back-ends to negate the value
      of dFdy() when an FBO is in use.  It also modifies the code that
      populates the program key (brw_wm_populate_key() and
      brw_fs_precompile()) so that they always record in the program key
      whether we are rendering to an FBO or to a window system framebuffer;
      this ensures that the fragment shader will get recompiled when
      switching between FBO and non-FBO use.
      
      This will result in unnecessary recompiles of fragment shaders that
      don't use dFdy().  To fix that, we will need to adapt the GLSL and
      NV_fragment_program front-ends to record whether or not a given shader
      uses dFdy().  I plan to implement this in a future patch series; I've
      left FIXME comments in the code as a reminder.
      
      Fixes Piglit test "fbo-deriv".
      
      NOTE: This is a candidate for stable release branches.
      
      Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
      82d25963
    • Brian Paul's avatar
      mesa: minor transform feedback comments · d988ea5e
      Brian Paul authored
      d988ea5e
    • Brian Paul's avatar
      mesa: fix comments on UBO buffer binding functions · 09af5783
      Brian Paul authored
      The old comments were for transform feedback.
      09af5783
    • Olivier Galibert's avatar
      draw: Handle the case when there isn't a fragment shader. · b8068afa
      Olivier Galibert authored and Jose Fonseca's avatar Jose Fonseca committed
      
      Signed-off-by: default avatarOlivier Galibert <galibert@pobox.com>
      Signed-off-by: default avatarJosé Fonseca <jfonseca@vmware.com>
      b8068afa
  5. Jun 21, 2012
Loading