summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-05-07glapi: Move to src/mapi/.Chia-I Wu115-158/+270
Move glapi to src/mapi/{glapi,es1api,es2api}.
2010-05-07glapi: Move assembly dispatchers back into glapi/.Chia-I Wu8-20/+20
2010-05-06gallivm: Require SSE2 for draw_llvm/llvmpipe due to LLVM PR6960.Török Edwin2-2/+18
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 Paul4-20/+22
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-06tgsi: make SSE ADD instruction SOA-safeBrian Paul1-5/+13
To properly execute an instruction such as "ADD tmp, tmp.wzyx, foo;" with SOA we (sometimes) need to put the results into temporaries before writing the results to the destination register. This patch fixes the ADD instruction but this needs to be done for many more instructions. Helps to fix piglit fp-long-alu test (fd.o bug 27989).
2010-05-06tgsi: code refactoringBrian Paul1-16/+34
2010-05-06tgsi: added tgsi_get_processor_name()Brian Paul2-0/+18
2010-05-06tgsi: fix tgsi_exec_machine_bind_shader() to handle NULL tokens, samplersBrian Paul1-1/+20
This lets us unbind a shader from the tgsi_exec_machine. Since shaders aren't ref counted we need this to properly clean up when deleting shaders elsewhere.
2010-05-06gallium/tgsi: remove unused tgsi_exec_labels codeBrian Paul2-22/+0
2010-05-06llvmpipe: Fix fence wait.José Fonseca1-1/+4
Avoids crashing when fence is NULL (LP_NUM_THREADS=0) and leaking when it is not.
2010-05-06st/mesa: fix compressed mipmap generation for small image sizesBrian Paul1-2/+24
When the mipmap level is smaller than the compression block width, height we need to fill in / replicate pixels so that we don't get garbage values. Fixes piglit gen-compressed-teximage test.
2010-05-06st/mesa: fix bug in compute_num_levels()Brian Paul1-5/+7
Fix more fall-out from the "ignore BaseLevel" change. This may help with fd.o bug 27991.
2010-05-06st/mesa: when copying mipmap levels between textures, start at BaseLevelBrian Paul1-1/+1
Saves some work and avoids potential issue with inconsistant mipmap level sizes. As long as the mipmap levels from BaseLevel to MaxLevel are consistant, we don't care about the other levels.
2010-05-06scons: Disable graw-null on msvc until linkage works.José Fonseca1-1/+3
2010-05-06graw-null: Try to fix MSVC linkage problems.José Fonseca1-1/+4
2010-05-06es: IgnoresJakob Bornecrantz1-0/+4
2010-05-06svga: Fix scons buildJakob Bornecrantz1-0/+2
2010-05-06llvmpipe: implement occlusion queryQicheng Christopher Li14-50/+277
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-06util: Recognize FALSE and F in debug_get_bool_optionJakob Bornecrantz1-0/+4
Concidering that we actually print FALSE when displaying the option we should also accept that value.
2010-05-06gallium: untrack u_indices_gen.c and u_indices_gen.cJosé Fonseca4-6123/+2
These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-06raw/clear: Make it portable.José Fonseca1-2/+3
2010-05-06graw-null: New target to ensure we always have a graw implementation available.José Fonseca4-3/+145
2010-05-06graw-xlib: Remove duplicate graw.h file.José Fonseca2-37/+1
2010-05-06Revert "gallium: untrack u_indices_gen.c and u_indices_gen.c"José Fonseca1-2/+0
This incomplete patch got commited by mistake. This reverts commit 2142c769a4ebfe1a7c3facb036af8b75c5288616.
2010-05-06gallium: untrack u_indices_gen.c and u_indices_gen.cXavier Chantry1-0/+2
These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-06gallium: untrack u_indices_gen.c and u_indices_gen.cXavier Chantry1-0/+2
These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-05darwin: Fix buildJeremy Huddleston1-4/+4
This is a regression from e42d84eaba228d4d96a46d116c6ca24581e29439 https://bugs.freedesktop.org/show_bug.cgi?id=27929 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commit 4d63be67f320839d115987211d0d9b4297f6d17d)
2010-05-05gallium: still more provoking vertex fixesBrian Paul2-11/+22
This fixes edge flags for polygons and provoking vertex for filled quads.
2010-05-05gallium: added edge flag print/debug code (disabled)Brian Paul1-0/+20
2010-05-05gallium: rename draw() to draw_elements() in vbuf codeBrian Paul10-47/+47
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 Paul2-93/+179
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 Paul7-164/+321
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-05tgsi: make dumping work on non-debug buildsMarek Olšák1-1/+1
2010-05-05st/mesa: fix per-vertex point sizeMarek Olšák1-1/+1
This fixes FDO bug #27343.
2010-05-05llvmpipe: added a new assertion as a hint to CoverityBrian Paul1-0/+1
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 Chantry3-8/+27
2010-05-05graw-xlib: Revert the output dir lib change.José Fonseca1-1/+3
2010-05-05st/mesa: Remove unnecessary headers.Vinson Lee1-6/+0
2010-05-05mesa: fpclassify dummy definition not needed on Mac OS X.Vinson Lee1-0/+4
2010-05-04svga: Remove unnecessary header.Vinson Lee1-1/+0
2010-05-04draw: Remove unnecessary header.Vinson Lee1-1/+0
2010-05-04util: Remove unnecessary headers.Vinson Lee3-3/+0
2010-05-04llvmpipe: Remove unnecessary headers.Vinson Lee2-2/+0
2010-05-04r300g: Fix memory leak on error path.Vinson Lee1-0/+1
2010-05-04i965: When an RB gets a new region, clear the old from the state cache.Eric Anholt4-6/+16
This prevents memory usage explosion in blender due to the state cache hanging on to old fake frontbuffer regions. Sigh at blender still using frontbuffer rendering. Bug #24119.
2010-05-04intel: Don't tile textures so small that size is blown up by over 2x.Eric Anholt1-4/+3
Noted on the mailing list for an app that puts each glyph for its text into a separate texture.
2010-05-04osmesa: remove unused varBrian Paul1-1/+0
2010-05-04mesa: remove some color index codeBrian Paul1-19/+0
2010-05-04mesa: remove unused renderbuffer adaptor codeBrian Paul4-607/+0
2010-05-04mesa: remove renderbuffer adaptor callsBrian Paul1-24/+0
Was only used for OSMesa but no longer needed.