summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2010-03-16i965g: Fix use of an uninitialized variable.Chia-I Wu
2010-03-16Merge remote branch 'origin/gallium-st-api'Chia-I Wu
2010-03-16nv50: fix texturing from >=4GiB markBen Skeggs
2010-03-16llvmpipe: Fix rebase typoJakob Bornecrantz
2010-03-16winsys/sw: Add a software winsys layered on a pipeJakob Bornecrantz
2010-03-16i965g: Fix after context transfersJakob Bornecrantz
2010-03-15gallivm: checkpoint: stencil test codeBrian Paul
2010-03-15gallivm/llvmpipe: rename some constant building functionsBrian Paul
2010-03-15gallivm: fix up some #includesBrian Paul
2010-03-15gallivm/llvmpipe: rename os_llvm.h to lp_bld.hBrian Paul
The llvm wrapper wasn't really an OS thing. Use lp_bld.h for now but we eventually should rename/re-prefix all the files/functions in the gallivm/ directory.
2010-03-15libgl-xlib: Obey GALLIUM_SOFTPIPE define.José Fonseca
2010-03-16gallium: fix frontbuffer rendering with r300gDave Airlie
No idea if this is the correct fix, but it makes it work again at least. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-15llvmpipe: updated status in README fileBrian Paul
2010-03-15gallivm: fix typo/bug in lp_build_sgn()Brian Paul
We were never returning -1 as a result. This fixes some inverted/flipped faces with cube mapping.
2010-03-15gallivm: add min_lod==max_lod special-case code in lp_build_lod_selector()Brian Paul
When min_lod==max_lod we don't need to go through all the work of computing the lod from partial derivatives. This is hit by the mipmap generation utility code.
2010-03-15gallivm: asst clean-ups, comments, etc.Brian Paul
2010-03-15gallivm: implement minification/magnification selectionBrian Paul
Use the LOD value to determine whether to use the minification vs. magnification filter. All mipmap sampling modes work now.
2010-03-15gallivm: fix incorrect clamp in lp_build_linear_mip_levels()Brian Paul
2010-03-15gallivm: fix incorrect floor(), itrunc()Brian Paul
LLVMBuildFPTrunc() should be used for double->float conversion, not float->int conversion. There should be a better way to compute floor(), ceil(), etc that doesn't involve float->int->float conversion.
2010-03-15nv40: remove leftover nv40_transfer.c from unification into nvfxLuca Barbieri
2010-03-15r300g: rebuild screen/winsys interfaceDave Airlie
This creates a cleaner winsys and drop the simple screen stuff. It makes r300g use pb_bufmgr structs. It also tries to avoid overheads from mapping too often. v5: clean warnings v6: break out of cache check on first buffer - since most likely the first busy one implies all after it are busy. v7: cleanup a bit v8-merged: drop cman for now to just get all the interface changes in first. rework to changes that happened upstream Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-15nv50: reset vbo_fifo before each validateBen Skeggs
2010-03-15nvfx: remove src_native_swz, which was a no-opLuca Barbieri
src_native_swz was used to translate 0/1 swizzles back when Gallium supported them. That support was later removed from Gallium, and the function currently always returns true. Remove it.
2010-03-15nvfx: clean up shader headerLuca Barbieri
Currently the behavior of shader.h depends on some constants that are defined differently in vertex and fragment programs. This patch cleans that up by splitting the relevant symbols in vertex program and fragment program variants
2010-03-15nvfx: draw: make swtnl draw_elements actually work.Luca Barbieri
It was totally broken: the index buffer was passed as NULL!
2010-03-15nvfx: draw: emit color as floating pointLuca Barbieri
Don't lose precision by converting to u8.
2010-03-15nvfx: draw: make perspective corrective texturing workLuca Barbieri
We must divide everything in the position by w, and emit position as a 4-component vector. Not sure why we must divide, but it works (see progs/redbook/checker).
2010-03-15nvfx: draw: create draw vp with uregLuca Barbieri
This avoids duplicating the vertex program generation logic and makes the same code work for both nv30 and nv40.
2010-03-15nvfx: add NOUVEAU_SWTNL to force swtnl at runtimeLuca Barbieri
Replace the FORCE_SWTNL macro with a NOUVEAU_SWTNL environment variable.
2010-03-15nvfx: move nv04_surface_2d.c into nvfx directoryLuca Barbieri
It is only used on pre-nv50 and nvfx is the only Gallium pre-nv50 driver.
2010-03-15nvfx: fix quads drawingLuca Barbieri
The primitive splitting code is totally broken and will be rewritten. Fix the most important bug now though.
2010-03-15nvfx: fix viewport state after bypass removal for swtnlLuca Barbieri
The adjustment of nv30/nv40 after the removal of bypass incorrectly removed the hardware viewport bypass code, which we still need for swtnl and also forgot to remove NVFX_NEW_RAST from pipe.
2010-03-15nv30, nv40: move last files to nvfx/ and rm -rf nv30 nv40Luca Barbieri
This is the last nvfx unification patch. nv[34]0_fragtex.c are moved to the common directory nv[34]0_shader.h are renamed to nv[34]0_vertprog.h and moved to the common directory The separate nv30 and nv40 directories are removed from the build system
2010-03-15nv30, nv40: partially non-trivially unify sampler state in nv[34]0_state.cLuca Barbieri
Many things, like texture wrap modes and min/mag filters are common. Some others, like annisotropy and lod settings, are not.
2010-03-15nv30, nv40: partially non-trivially unify nv[34]0_fragtex.cLuca Barbieri
The bulk files cannot be unified, but the frontend can and allows to share some code and simplify state_emit.c
2010-03-15nv30, nv40: unify nv[34]0_context.cLuca Barbieri
They are now almost identical, except for nv30 vs nv40 fragtex initialization.
2010-03-15nv30, nv40: fully unify nv[34]0_context.hLuca Barbieri
Move the remaining content to the common header.
2010-03-15nv30, nv40: non-trivially unify nv[34]0_screen.cLuca Barbieri
The files have the same structure but are substantially different. They are unified with appropriate conditionals.
2010-03-15nv30, nv40: non-trivially unify nv[34]0_vertprog.cLuca Barbieri
vertprog.c is similar but has substantial differences: 1. nv40 supports clip planes 2. nv40 uses a more advanced register allocator 3. Some register setup is different 4. Constants with the same name have different values This patch unifies the two files. nv30 gains clip plane support and the nv40 register allocator. A new NVFX_VP(x) macro is introduced that at runtime resolved to either the nv30 or the nv40 constant value. nv30 clip planes are not tested and might not work
2010-03-15nv30, nv40: partially unify nv[34]0_state.cLuca Barbieri
state.c is identical except for: 1. Sampler state creation is different 2. nv40 swtnl support 3. Separate blend equations on nv40 This patch unifies nv[34]0_state.c, except the sampler state creation code.
2010-03-15nv30, nv40: unify nv[34]0_vbo.cLuca Barbieri
The files are identical, except for swtnl support which is commented out on nv30 and restart being initialized on nv30 to avoid a compiler warning.
2010-03-15nv30, nv40: non-trivially unify nv[34]0_draw.cLuca Barbieri
nv30_draw.c is a stub. This patch makes both nv30 and nv40 use the nv40 swtnl path. Note that this doesn't actually work on nv30 because the vertex program is encoded in the nv40-only layout. However, swtnl was unimplemented before on nv30, so this is not a regression. Furthermore, a patch to fix this is available near the end of the patchset.
2010-03-15nv30, nv40: non-trivially unify nv[34]0_fragprog.cLuca Barbieri
The files are mostly the same except: 1. On NV40, some TGSI instructions are emulated with several hardware ones 2. Some instructions such as DDX/DDY, and STR were missing from nv30 3. NV40 has more sophisticated register management nv30 now supports all instructions and uses the nv40 register management.
2010-03-15nv30, nv40: non-trivially partially unify nv[34]0_shader.hLuca Barbieri
shader.h is similar, except for the following differences: 1. The instruction sets are not exactly the same, but mostly similar 2. Vertex program fields are in different bit positions This patch unifies all parts of nv[34]0_shader.h except the vertex program fields. Vertex opcodes are also changed so that the constant names includes SCA if it is a scalar opcode and VEC if it is a vector opcode.
2010-03-15nv30, nv40: non-trivially unify nv[34]0_state_fb.cLuca Barbieri
The files are significantly different due to: 1. nv30 support 2 render targets, nv40 4 2. z-buffer pitch is set differently 3. nv30 has a limitation of colour_bits >= zeta_bits. This may not actually exist in the driver though 4. nv30 points color0 at depth in the depth-only case 5. nv30 sets NV34TCL_VIEWPORT_TX_ORIGIN to 0. This is probably unnecessary This patch attempts to unify the two files and preserve the existing behavior.
2010-03-15nv30, nv40: unify nv[34]0_state_viewport.cLuca Barbieri
The files are identical, except for an extra comment in nv30.
2010-03-15nv30, nv40: unify nv[34]0_query.cLuca Barbieri
The files are identical except formatting.
2010-03-15nv30, nv40: unify nv[34]0_miptree.cLuca Barbieri
The only difference between nv30 and nv40 is that nv30 allowed swizzling for more texture types. This patch preserves the existing behavior, using conditional code. Note however that this does not make sense, since all texture types can be swizzled on nv40 and probably on nv30 too. However, the handling of swizzled surfaces in the current 2D code is partially broken, so it's best not to touch this. A whole rewrite of the 2D code will be submitted, which will solve this problem.
2010-03-15nv30, nv40: unify nv[34]0_state_stipple.cLuca Barbieri
The files are identical, except for the fact that the nv40 version forgets to unreference the stateobj. Unified to the correct nv30 version.
2010-03-15nv30, nv40: unify identical nv[34]0_state_zsa.cLuca Barbieri