summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* r300g: initialize VAP_VTX_STATE_CNTLMarek Olšák2010-08-111-0/+5
| | | | This got lost during the rasterizer rewrite.
* r300g: implement gl_FrontFacingMarek Olšák2010-08-113-7/+53
|
* svga: Remove unnecessary headers.Vinson Lee2010-08-101-2/+0
|
* r300g: Remove unnecessary header.Vinson Lee2010-08-101-1/+0
|
* r300/compiler: Implement hardware assisted loops for vertex shaders.Tom Stellard2010-08-103-1/+40
| | | | Single loops work, but nested loops do not.
* r600g: avoid reemiting literal, avoid scheduling empty csJerome Glisse2010-08-106-32/+40
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* util: Add util_format_srgb().José Fonseca2010-08-101-0/+38
| | | | To convert RGB -> SRGB format.
* gallivm: fix non-SSE4.1 case in lp_build_pack2()Brian Paul2010-08-101-5/+9
| | | | | | | Since there's no SSE instruction for this case, fall through to the generic shuffle code. Fixes bug fd.o 29468.
* gallivm: Fix bitwise operations for floats, division for integersnobled2010-08-102-5/+27
| | | | | | http://bugs.freedesktop.org/29407 Signed-off-by: José Fonseca <[email protected]>
* gallivm: Even more type checkingnobled2010-08-102-1/+26
| | | | | | http://bugs.freedesktop.org/29407 Signed-off-by: José Fonseca <[email protected]>
* llvmpipe: Always use floating-point operators for floating-point typesnobled2010-08-101-9/+8
| | | | | | | | See: http://bugs.freedesktop.org/29404 http://bugs.freedesktop.org/29407 Signed-off-by: José Fonseca <[email protected]>
* gallivm: More type checks.José Fonseca2010-08-091-0/+43
|
* gallivm: Don't call LLVMBuildFNeg on llvm-2.6.José Fonseca2010-08-092-9/+4
| | | | It didn't exist yet.
* gallivm: Always use floating-point operators for floating-point typesnobled2010-08-097-92/+137
| | | | | | | | | | | | | | | | | This fixes the assert added in LLVM 2.8: assert(getType()->isIntOrIntVectorTy() && "Tried to create an integer operation on a non-integer type!") But it also fixes some subtle bugs, since we should've been doing this since LLVM 2.6 anyway. Includes a modified patch from [email protected] for the FNeg instructions in emit_fetch(); thanks for pointing those out. http://bugs.freedesktop.org/29404 http://bugs.freedesktop.org/29407 Signed-off-by: José Fonseca <[email protected]>
* util: Move _mm_shuffle_epi8() to u_sse.h.José Fonseca2010-08-092-28/+30
| | | | It's bound to be useful elsewhere.
* r600g: fix r600 context structure, avoid segfault when no scissorJerome Glisse2010-08-092-3/+16
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r300g: do not print shader compiler errors by defaultMarek Olšák2010-08-092-5/+4
|
* r600g: fix some warningsMarek Olšák2010-08-093-3/+5
|
* r600g: fill out some missing caps and sort themMarek Olšák2010-08-091-32/+65
| | | | | | The shader caps need additional corrections. (based on a patch from netkas at Phoronix)
* r300g: fix hiz/zmask offset emissions.Dave Airlie2010-08-091-2/+2
| | | | | | ofs is in dwords, so need to shift it for registers. Signed-off-by: Dave Airlie <[email protected]>
* nouveau: fix maps with PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_DONTBLOCKLuca Barbieri2010-08-091-3/+2
| | | | | | | | | In this case, we were incorrectly prioritizing PIPE_TRANSFER_DONTBLOCK over PIPE_TRANSFER_UNSYNCHRONIZED. This can lead to failure in the Mesa VBO draw paths that end up specifying both, but don't expect map to fail (in particular, the problem manifested as a leak of buffer objects in teapot with other changes).
* r300g: remove a flushMarek Olšák2010-08-081-1/+0
| | | | Ooops, it wasn't supposed to be there.
* gallivm: Fix more integer operations.José Fonseca2010-08-081-2/+4
|
* gallivm: Use the correct context for integersnobled2010-08-081-1/+1
| | | | | See: http://bugs.freedesktop.org/29407
* r300g: flush zmasks of zbuffers we are going to use as samplersMarek Olšák2010-08-084-7/+58
| | | | It sometimes works, sometimes not. I guess we have the zmask offsets wrong.
* r300g: do not allocate a zmask block for 3D textures and cubemapsMarek Olšák2010-08-081-0/+6
|
* r300g: generalize the way we ask for hyperzMarek Olšák2010-08-081-9/+26
| | | | | | | This makes it compatible with the modified DRM interface in drm-radeon-testing. Also, now you need to set RADEON_HYPERZ=1 to be able to use hyperz. It's not bug-free yet.
* gallivm: Add type checks for the basic operations.José Fonseca2010-08-081-0/+12
|
* draw: Remove unused variable.José Fonseca2010-08-081-4/+2
|
* draw: Use the correct type for integersnobled2010-08-081-4/+2
| | | | | | | | Two integers were being operated on as a vector of floats in draw_llvm_generate(). This bug got uncovered by fixing this bug: http://bugs.freedesktop.org/29407
* r300g: take hiz/zmask offsets into a/c when clearing.Dave Airlie2010-08-081-0/+4
| | | | | | Need to add a test for multi-hiz/zmask db in a single context. Signed-off-by: Dave Airlie <[email protected]>
* r300g: fix cbzb clears when hyperz is offMarek Olšák2010-08-075-10/+11
|
* nouveau: fix potential NULL-ptr dereference in nouveau_stateobj.hMaarten Maathuis2010-08-061-6/+4
| | | | | | | | - This can only be triggered when DEBUG_NOUVEAU_STATEOBJ is active. - Also remove a redundant pointer assignment. Reported-by: Roy Spliet <[email protected]> Signed-off-by: Maarten Maathuis <[email protected]>
* r600g: add PA_CL_CLIP_CNTL definitionJerome Glisse2010-08-061-0/+55
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix rendering, only enable target we write tooJerome Glisse2010-08-061-2/+2
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: really fix multi target supportJerome Glisse2010-08-064-46/+26
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* gallium: remove stray semicolonsBrian Paul2010-08-064-4/+4
|
* r600g: finish multi target rendering supportJerome Glisse2010-08-066-38/+158
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* targets/egl: Fix build by including missing headers.Vinson Lee2010-08-062-0/+2
|
* draw: Add an assertion to varray's version of trim().Chia-I Wu2010-08-071-1/+6
| | | | | | Assert that "first" is always smaller than "count" and add reasoning. It would be better to simply fix trim(), but it is used in tight loops right now.
* draw: Fix draw_pt_split_prim for primitives with adjacency.Chia-I Wu2010-08-071-3/+3
| | | | Some primitives with adjacency have their "incr" wrong.
* draw: Assert that only the first vetex may have flags set.Chia-I Wu2010-08-071-13/+23
| | | | | | 642d5ba79abc6a231a5fdabb3454b9b082b0d7f8 removed flags masking for vertices other than the first one. Add assertions to be on the safe side.
* r600g: fix color format, indentation, definesJerome Glisse2010-08-063-89/+93
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* Revert "r600g: don't use dynamic state allocation for states"Jerome Glisse2010-08-0612-362/+647
| | | | | | | | | | | This reverts commit 9c949d4a4dd43b7889e13bdf683bcf211f049ced. Conflicts: src/gallium/drivers/r600/r600_context.h src/gallium/drivers/r600/r600_draw.c src/gallium/drivers/r600/r600_shader.c src/gallium/drivers/r600/r600_state.c
* draw: Avoid mixed declarations and code.Chia-I Wu2010-08-063-4/+4
| | | | | | | Do not expand LOCAL_VARS to void expression. Otherwise, declarations and code will be mixed when more variables are declared in FUNC_ENTER. This fixes fdo bug #29416.
* r300g: Remove unnecessary headers.Vinson Lee2010-08-051-2/+0
|
* r600g: start to fix up multiple targets.Dave Airlie2010-08-063-17/+50
| | | | | | fixup exports from pixel shader for multi-cbs + depth buffer writing. Still crashes GPU running any of the multi-buffer or depth writing
* draw: Remove unnecessary vertex flag ANDs.Chia-I Wu2010-08-061-19/+15
| | | | | Vertex flags are a contract between vcache and the pipeline. They are set only for the first vertex of a primitive.
* draw: Mask out vertex flags in GS and stream output.Chia-I Wu2010-08-062-2/+2
| | | | This fixes out-of-bound access to the vertices.
* draw: Include draw_decompose_tmp.h in draw_pt_decompose.h.Chia-I Wu2010-08-062-296/+36
| | | | Use draw_decompose_tmp.h to replace pipeline primitive decomposer.