summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2010-05-10gallivm/llvmpipe: move an old comment to a better locationBrian Paul
2010-05-10svga: Fill in is_resource_referenced callback.José Fonseca
2010-05-10i965g: fix resource creation recursion bugRoland Scheidegger
2010-05-10i965g: add brw_state_debug.c to SConscriptRoland Scheidegger
2010-05-08gallivm: Add an alternative to LLVMDumpValue that works with Windows GUI apps.José Fonseca
2010-05-08r300g: follow pipe_rasterizer_state::light_twosideMarek Olšák
2010-05-08r300g: follow pipe_rasterizer_state::point_size_per_vertexMarek Olšák
2010-05-08r300g: move GA_POINT_MINMAX back to rs_stateMarek Olšák
This basically reverts commit 74f94e8fdfe035fa68acdc19e6b0afc2957a4264.
2010-05-08r300g: fix glean/pointSprite using lodbias correctionMarek Olšák
2010-05-08r300g: pass depth texture swizzle to the compiler if compare mode is enabledMarek Olšák
2010-05-08r300g: respect compare mode regardless of sampler typeMarek Olšák
2010-05-08r300/compiler: generalize depth texture mode to support arbitrary swizzlesMarek Olšák
2010-05-08r300g: consolidate common render code into one functionMarek Olšák
This reduces redundant code by moving: - CS space reservation - buffer validation - dirty state emission - index bias emission - AOS emission into r300_prepare_for_rendering.
2010-05-08llvmpipe: Cover more formats in unit test.José Fonseca
2010-05-08llvmpipe: Match p_screen.h's function prototype.José Fonseca
2010-05-08llvmpipe: Remove unnecessary header.Vinson Lee
2010-05-06gallivm: Require SSE2 for draw_llvm/llvmpipe due to LLVM PR6960.Török Edwin
Note that this also requires X86 for llvm, if llvmpipe/draw_llvm works on PPC then the condition should be extended to include && x86. Signed-off-by: Török Edwin <edwintorok@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-06softpipe: fix dangling references to shaders in the TGSI executorBrian Paul
If a shader was bound to the fragment shader TGSI executor and it was then deleted and a new shader was allocated at the same address as the old shader, the new fragment shader would not get properly bound to the TGSI machine and we'd wind up using the old one. This would not have been a problem if shaders were refcounted. Now the TGSI machine is owned by the context rather than the quad pipeline's shader stage so that the softpipe_delete_fs_state() function can access it. Fixes sporadic failures of the piglit fp-long-alu test (fd.o bug 27989).
2010-05-06llvmpipe: Fix fence wait.José Fonseca
Avoids crashing when fence is NULL (LP_NUM_THREADS=0) and leaking when it is not.
2010-05-06llvmpipe: implement occlusion queryQicheng Christopher Li
OpenGL occlusion queries work now. The Mesa demos, glean test and piglit tests all pass. A few enhancements are possible in the future. -Brian Signed-off-by: Brian Paul <brianp@vmware.com>
2010-05-05gallium: rename draw() to draw_elements() in vbuf codeBrian Paul
Now we have draw_elements() and draw_arrays() to be consistent with the pipe_context drawing functions.
2010-05-05llvmpipe: update driver's provoking vertex codeBrian Paul
Note that the lp_setup_vbuf.c code is very, very similar to the corresponding code in softpipe. It could probably be shared.
2010-05-05gallium: rework provoking vertex codeBrian Paul
Builds on commit ddb0e18f6c5582d4d2cc59ffd16ad9c4639ed059 and fixes regressions in glean clipFlat test. We assume that Gallium drivers observe flatshade_first for all triangles and that all the assorted per-triangle calls in the 'draw' module also follow flatshade_first. Everything else builds on those rules. Gallium does not use follow flatshade_first for GL quads, quad strips and polygons; the "last" vertex is always the provoking vertex for those prims. So now there are separate QUAD_FIRST_PV and QUAD_LAST_PV macros in the draw primitive decomposition code instead of one QUAD macro.
2010-05-05llvmpipe: added a new assertion as a hint to CoverityBrian Paul
Looks like coverity found a false positive for an out of bounds array write.
2010-05-05nouveau: only advertise PIPE_FORMAT_DXT* if s3tc availableXavier Chantry
2010-05-04svga: Remove unnecessary header.Vinson Lee
2010-05-04llvmpipe: Remove unnecessary headers.Vinson Lee
2010-05-04r300g: Fix memory leak on error path.Vinson Lee
2010-05-04llvmpipe: predicate LLVMDumpModule() on DEBUG_JITBrian Paul
2010-05-04llvmpipe: fix broken compressed cube mapsBrian Paul
When the cube faces were stored in a compressed format, the img_stride values were wrong and didn't match the per-face size computed in the tex_image_face_size() function. This caused bad rendering or segfaults.
2010-05-04llvmpipe: do some null pointer checkingBrian Paul
2010-05-04llvmpipe: add some tests for malloc() returning NULL.Brian Paul
Start propogating NULL pointers from allocation functions and checks for NULL in the callers...
2010-05-04r300g: advertise S3TC only when it's available in GalliumMarek Olšák
2010-05-04gallivm: Proper implementation of TXL opcode.José Fonseca
2010-05-04gallivm: Implement TXD.José Fonseca
2010-05-03gallium: move surface utility functions into u_surface.cBrian Paul
This is a better place than in u_rect.c
2010-05-03gallium: move framebuffer utility functions into a new fileBrian Paul
2010-05-03r300g: use util_format_short_name and util_format_is_plainMarek Olšák
2010-05-03r300g: refuse to create a texture with size 0Marek Olšák
2010-05-03r300g: improve texture debug output, split into TEX and TEXALLOC flagsMarek Olšák
2010-05-03Reorder LLVM passes, running mem2reg earlier.Török Edwin
This gives a ~30% shader optimization time improvement on blender. Tested by comparing the dumped LLVM modules. Current ordering: time ~/llvm-git/obj/Release-Asserts/bin/opt l.bc -constprop -instcombine -mem2reg -gvn -simplifycfg real 0m1.126s user 0m1.108s sys 0m0.012s With this patch: time ~/llvm-git/obj/Release-Asserts/bin/opt l.bc -mem2reg -constprop -instcombine -gvn -simplifycfg real 0m0.885s user 0m0.880s sys 0m0.000s The overall improvement in blender is ~15%. Blender without the patch takes 1m13s: edwin 5934 87.6 11.5 729440 458296 pts/5 SLl+ 17:35 1:13 blender Blender with the patch takes 1m3s: edwin 5726 94.2 11.2 716424 446168 pts/5 SLl+ 17:32 1:03 blender It is still slow with the patch, but better (most of the optimization time is taken up by GVN, see LLVM PR7023). Signed-off-by: Török Edwin <edwintorok@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-03svga: Silent warning.José Fonseca
2010-05-03gallium: Remove loop register file.José Fonseca
It was only used for D3D's REP/END/BGNFOR/ENDFOR. D3D's aL register is just like another address register now.
2010-05-03softpipe: invalidate cache view when swizzles are different.Dave Airlie
Current code only invalidated if the texture was different, however we store swizzled values in the cache, so we need to invalidate in that case also. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-05-03identity: Move sampler view create and destroy to id_objects.cJakob Bornecrantz
2010-05-03identity: s/texture/resource/Jakob Bornecrantz
2010-05-03identity: Whitespace & StyleJakob Bornecrantz
2010-05-03llvmpipe: add lp_test_* to .gitignoreXavier Chantry
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-03svga: Remove the screen private context.José Fonseca
All affected operations have already been moved to context. More cleanup work can be done, in particular with the buffer transfers.
2010-05-03svga: Remove empty file.José Fonseca