summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-26i965: enable ARB_instanced_arrays extensioninstanced_arrays-v2Jordan Justen4-7/+42
Set the step_rate value when drawing to implement ARB_instanced_arrays for gen >= 4. v2: * leave (total_size < 2048) check where it was to only make this check once rather than once for each array. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-06-25st/wgl: 80-column wrappingBrian Paul2-7/+12
2012-06-25docs/lists: add piglit mailing listAndreas Boll1-0/+3
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs/helpwanted: update some infoAndreas Boll1-9/+8
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs/sourcetree: update some infoAndreas Boll1-4/+6
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs/devinfo: update release infoAndreas Boll1-22/+19
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs/systems: add some useful driver linksAndreas Boll1-5/+7
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs: update some broken/old linksAndreas Boll5-6/+6
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs: whitespace cleanupAndreas Boll1-16/+16
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs: escape html special charAndreas Boll1-1/+1
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs: add missing target attributeAndreas Boll3-4/+4
target is needed for the frame based layout Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs/shading: use proper markupAndreas Boll1-11/+11
use dl instead of ul Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-25docs: document the GALLIUM_LOG_FILE env varBrian Paul1-0/+2
2012-06-25mesa: new MESA_LOG_FILE env var to log errors, warnings, etc., to a fileBrian Paul2-2/+14
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-06-25docs: update GL3.3 statusMarek Olšák1-1/+2
2012-06-25r600g: inline r600_blit_push_depth and use resource_copy_regionMarek Olšák3-18/+11
We are going to have a separate resource for depth texturing and transfers and this is just a transfer thing.
2012-06-25r600g: split flushed depth texture creation and flushingMarek Olšák5-16/+34
2012-06-25i965/msaa: Add backend support for centroid interpolation.Paul Berry3-11/+32
This patch causes the fragment shader to be configured correctly (and the correct code to be generated) for centroid interpolation. This required two changes: brw_compute_barycentric_interp_modes() needs to determine when centroid barycentric coordinates need to be included in the pixel shader thread payload, and fs_visitor::emit_general_interpolation() needs to interpolate using the correct set of barycentric coordinates. Fixes piglit tests "EXT_framebuffer_multisample/interpolation {2,4} centroid-edges" on i965. Reviewed-by: Eric Anholt <eric@anholt.net>
2012-06-25i965/fs: Refactor interpolation code to prepare for adding centroid support.Paul Berry2-8/+17
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-06-25i965/msaa: Adapt clip setup for centroid noperspective interpolation.Paul Berry3-2/+6
To save time, we only instruct the clip stage of the pipeline to compute noperspective barycentric coordinates if those coordinates are needed by the fragment shader. Previously, we would determine whether the coordinates were needed by seeing whether the fragment shader used the BRW_WM_NONPERSPECTIVE_PIXEL_BARYCENTRIC interpolation mode. However, with MSAA, it's possible that the fragment shader might use BRW_WM_NONPERSPECTIVE_CENTROID_BARYCENTRIC instead. In the future, when we support ARB_sample_shading, it might use BRW_WM_NONPERSPECTIVE_SAMPLE_BARYCENTRIC. This patch modifies the upload_clip_state() functions to check for all three possible noperspective interpolation modes. Reviewed-by: Eric Anholt <eric@anholt.net>
2012-06-25glsl: Add IsCentroid bitfield to gl_fragment_program.Paul Berry2-1/+11
This bitfield tells the back-ends which of a fragment shader's inputs require centroid interpolation. It is only set for GLSL fragment shaders, since assembly fragment shaders don't support centroid interpolation. Reviewed-by: Eric Anholt <eric@anholt.net>
2012-06-25st/mesa: added some simple fbo debugging/helper codeBrian Paul1-1/+25
2012-06-25llvmpipe: fix the LP_NO_RAST debug optionBrian Paul4-24/+22
It was only no-oping the clear() function, not actual triangle rasterization. Move the no_rast field from lp_context down into lp_rasterizer so it's accessible where it's needed. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-06-23scons: Add glsl/glcpp to the include path.Vinson Lee1-2/+2
Fixes this build failure on Solaris. Compiling build/sunos-debug/glsl/glcpp/glcpp-lex.c ... "src/glsl/glcpp/glcpp-lex.l", line 30: cannot find include file: "glcpp-parse.h" Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-06-22automake: add missing inclusion of GL headersLaurent Carlier2-0/+2
Building fail when GL headers are not installed in the system, so add inclusion of these headers. Signed-off-by: Brian Paul <brianp@vmware.com>
2012-06-22mesa: #define fprintf to be __mingw_fprintf() on Mingw32Brian Paul1-0/+10
So that formats such as "%llx" are understood. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-22svga: init pointer to NULL to silence MSVC warningBrian Paul1-1/+1
2012-06-22clover: Add --with-clang-libdir option and verify CLANG_RESOURCE_DIRTom Stellard2-1/+18
$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.
2012-06-22i965: Compute dFdy() correctly for FBOs.Paul Berry6-9/+46
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 <kenneth@whitecape.org>
2012-06-22mesa: minor transform feedback commentsBrian Paul1-0/+2
2012-06-22mesa: fix comments on UBO buffer binding functionsBrian Paul1-4/+7
The old comments were for transform feedback.
2012-06-22draw: Handle the case when there isn't a fragment shader.Olivier Galibert1-10/+17
Signed-off-by: Olivier Galibert <galibert@pobox.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-06-21mesa: update the emacs indent filesZack Rusin2-10/+10
dirvars package has been replaced by built-in functionality of dir-locals. preserve the settings in the new infrastructure
2012-06-21r600g: Unify SURFACE_SYNC packet emission for 3D and computeTom Stellard3-101/+30
Drop the compute specific evergreen_set_buffer_sync() function and instead use the r600_surface_sync_command atom for emitting SURFACE_SYNC packets.
2012-06-21r600g: Enable reusing of compute stateTom Stellard1-6/+9
2012-06-21r600g: Fix reading vtx instruction offset from bytestreamTom Stellard1-1/+1
2012-06-21radeon/llvm: Turn on the BitExtract peephole optimizationTom Stellard2-5/+32
Thie BitExtract optimization folds a mask and shift operation together into a single instruction (BFE_UINT).
2012-06-21radeon/llvm: Lower ROTL to BIT_ALIGNTom Stellard6-1/+54
2012-06-21radeon/llvm: Use the VLIW Scheduler for R600->NITom Stellard12-8/+75
It's not optimal, but it's better than the register pressure scheduler that was previously being used. The VLIW scheduler currently ignores all the complicated instruction groups restrictions and just tries to fill the instruction groups with as many instructions as possible. Though, it does know enough not to put two trans only instructions in the same group. We are able to ignore the instruction group restrictions in the LLVM backend, because the finalizer in r600_asm.c will fix any illegal instruction groups the backend generates. Enabling the VLIW scheduler improved the run time for a sha1 compute shader by about 50%. I'm not sure what the impact will be for graphics shaders. I tested Lightsmark with the VLIW scheduler enabled and the framerate was about the same, but it might help apps that use really big shaders.
2012-06-21mesa: set GL_ARB_uniform_buffer_object extension year to 2009Brian Paul1-1/+1
2012-06-21mesa: Add a comment explaining my thoughts on glBindBufferBase().Eric Anholt1-0/+26
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Add support for glGetIntegeri_v from GL_ARB_uniform_buffer_object.Eric Anholt1-0/+24
Fixes piglit ARB_uniform_buffer_object/getintegeri_v. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Add support for glBindBufferBase/Range on GL_UNIFORM_BUFFER.Eric Anholt1-0/+85
Fixes piglits: GL_ARB_uniform_buffer_object/bindbuffer-general-point. GL_ARB_uniform_buffer_object/negative-bindbuffer-buffer GL_ARB_uniform_buffer_object/negative-bindbuffer-index GL_ARB_uniform_buffer_object/negative-bindbuffer-target GL_ARB_uniform_buffer_object/negative-bindbufferrange-range Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Move glBindBufferBase and glBindBufferRange() to bufferobj.Eric Anholt4-59/+103
The rest of the TFB implementation remains in transformfeedback.c, and this will be shared with UBOs. v2: Move the size/offset checks shared with UBOs to common code as well. (Kenneth's review) Reviewed-by: Brian Paul <brianp@vmware.com> (v1) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Move buffer object dispatch setup to bufferobj.c.Eric Anholt3-11/+21
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Add indexed binding points for uniform buffer objects.Eric Anholt2-0/+51
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Add support for the GL_UNIFORM_BUFFER general binding point.Eric Anholt3-0/+22
Fixes piglit ARB_uniform_buffer_object/buffer-targets. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21mesa: Add state and getters for the GL_ARB_uniform_buffer_object maximums.Eric Anholt3-0/+51
Fixes piglit GL_ARB_uniform_buffer_object/minmax. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21glapi: Add uniform buffer object APIVincent Lejeune3-1/+101
v2: Fix a typo spotted by Eric Anholt. v3: Fix missing "GL" on types, fix style, fix Studly_Caps extension name, drop commented code duplicated with GL3x.xml [anholt] Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-06-21dricore: Turn it into a normal library.Eric Anholt4-28/+11
Our intention is still that it's not abi stable, so make the package version number get included in the library name. Now you can parallel install dricore-using drivers from multiple mesa versions. We can put it into lib now that we're following library versioning rules (assuming that ABIs don't change within a single Mesa point release). LD_LIBRARY_PATH still doesn't work with a non-/, non-/usr prefix because libtool uses rpath instead of runpath for nonstandard prefixes.