aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40/nv40_fragprog.c
Commit message (Collapse)AuthorAgeFilesLines
* nv30, nv40: non-trivially unify nv[34]0_fragprog.cLuca Barbieri2010-03-151-984/+0
| | | | | | | | | 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.
* nv30, nv40: non-trivially partially unify nv[34]0_shader.hLuca Barbieri2010-03-151-80/+80
| | | | | | | | | | | | 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.
* nv30, nv40: unify all structures and headers, except shadersLuca Barbieri2010-03-151-31/+31
| | | | | | | | | | | | | | | | | | | This patch unifies nv[34]0_screen.h, nv[34]0_context.h and nv[34]0_state.h The unified files are put in a new "nvfx" directory. nv30_context.h and nv40_context.h still exist to hold the function prototypes and include nvfx_context.h nv[34]0_screen.h and nv[34]0_state.h are deleted, replaced by the unified versions. nv40 includes some extra fields for swtnl and user clip planes support. These fields will be unused on nv30 until that functionality gets added to it too (by unification with nv40).
* nouveau: s/rankine/eng3d/g; s/curie/eng3d/gLuca Barbieri2010-03-151-2/+2
| | | | | | | Result of running: perl -i -p -e 's/rankine/eng3d/g; s/curie/eng3d/g;' nv[34]0/*.[ch] This will allow to more easily unify nv30 and nv40.
* nv40: use NV34TCL_ constants where availableLuca Barbieri2010-03-151-4/+4
| | | | | | | | | | | It was decided to just use the NV34TCL_ constants for constants common between nv30 and nv40, and deprecate the NV40TCL_ versions. This patch changes the nv40 driver to use NV34TCL_ constants for common functionality. This reduces differences between nv30 and nv40 to ease further unification.
* gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca2010-02-021-1/+1
|
* nouveau: rewrite nouveau_stateobj to use BEGIN_RING properlyMaarten Maathuis2010-01-051-1/+1
| | | | | | | | | - The previous solution was hacky and didn't do subchannel autobinding. - The beheaviour should match what libdrm_nouveau does closely. - The solution remains statically sized, but when debugging is on it will check for abuse. Signed-off-by: Maarten Maathuis <[email protected]>
* nouveau: Unreference state/buffer objects on context/screen destruction.Younes Manton2009-12-281-4/+10
| | | | | | | | - unreference state objects so that buffer objects are unreferenced and eventually destroyed - free channel at screen's destruction Based on Krzysztof Smiechowicz's patch.
* NV30/NV40 CMP and SCS src == dst handlingLuca Barbieri2009-12-281-8/+24
| | | | | | | | CMP and SCS can produce incorrect results if the source and destination are the same. This patch should fix the issues. CMP is fixed by predicating both moves. SCS by changing the order if the source component is X.
* tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-241-23/+23
| | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
* tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-241-5/+5
| | | | | DstRegister -> Register DstRegisterInd -> Indirect
* tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-241-4/+4
| | | | DeclarationRange -> Range
* tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-241-4/+4
| | | | | | | | InstructionPredicate -> Predicate InstructionLabel -> Label InstructionTexture -> Texture FullSrcRegisters -> Src FullDstRegisters -> Dst
* tgsi: reduce repetition of structure name in its membersKeith Whitwell2009-11-241-7/+7
| | | | | Rename Semantic.SemanticName to Semantic.Name. Similar for SemanticIndex, and the members of the tgsi_version struct.
* gallium: try and update r300 and nv drivers for tgsi changesKeith Whitwell2009-11-241-1/+1
| | | | | | | | It would be nice if these drivers built under the linux-debug header so that these types of interface changes can be minimally propogated into those drivers by people without the hardware. They don't have to generate a working driver -- though a command-dumping winsys would be an excellent for regression checking.
* gallium: remove extended negate also, and also the ExtSwz tokenKeith Whitwell2009-10-231-21/+2
| | | | | | Likewise, the extended negate functionality hasn't been used since mesa switched to using tgsi_ureg to build programs, and has been translating the SWZ opcode internally to a single MAD.
* gallium: remove the swizzling parts of ExtSwizzleKeith Whitwell2009-10-231-13/+5
| | | | | | | | | These haven't been used by the mesa state tracker since the conversion to tgsi_ureg, and it seems that none of the other state trackers are using it either. This helps simplify one of the biggest suprises when starting off with TGSI shaders.
* gallium: remove noise opcodesKeith Whitwell2009-10-231-6/+0
| | | | | | | | | | | Provide a dummy implementation in the GL state tracker (move 0.5 to the destination regs). At some point, a motivated person could add a better implementation of noise. Currently not even the nvidia binary drivers do anything more than this. In any case, the place to do this is in the GL state tracker, not the poor driver.
* gallium: simplify tgsi_full_immediate structKeith Whitwell2009-07-221-4/+4
| | | | | | | | | | | | | Remove the need to have a pointer in this struct by just including the immediate data inline. Having a pointer in the struct introduces complications like needing to alloc/free the data pointed to, uncertainty about who owns the data, etc. There doesn't seem to be a need for it, and it is unlikely to make much difference plus or minus to performance. Added some asserts as we now will trip up on immediates with more than four elements. There were actually already quite a few such asserts, but the >4 case could be used in the future to specify indexable immediate ranges, such as lookup tables.
* nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws->Ben Skeggs2009-06-051-8/+9
|
* nouveau: pass nouveau_bo instead of pipe_buffer to so_ callsBen Skeggs2009-06-051-3/+4
|
* nouveau: make stateobjs start off with refcount of 1Ben Skeggs2009-03-071-0/+1
|
* gallium: Unify reference counting.Michel Dänzer2009-03-041-1/+2
| | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
* nv30/nv40: KIL/KILP swapped meaningsBen Skeggs2008-08-141-2/+2
|
* nouveau: fix buildBen Skeggs2008-08-071-2/+2
|
* nouveau: update for interface changes + hack around gallium x86_64 bustageBen Skeggs2008-06-231-4/+4
|
* nv40: mark fp dirty even when only consts updatedBen Skeggs2008-03-311-2/+2
| | | | Fixes arbfplight "sticking".
* nv40: fix fp depth writeBen Skeggs2008-03-231-1/+1
|
* nv40: remove some badness from fp temp/result allocationBen Skeggs2008-03-231-51/+107
| | | | | Should hopefully be OK now (on the fragprog size) for MRT. The hack from a commit 01cb2cd93efe7ad94d7fd36aa5a776c2e3ab4c7d is no longer needed.
* nv40: catch fp extra-const cases where both const and immd have same idxBen Skeggs2008-03-231-3/+14
|
* nv40: fp: fix multiple refs to a single const withing an instructionBen Skeggs2008-03-231-1/+7
|
* nv40: workaround fp result.data[0] clobberageBen Skeggs2008-03-231-1/+3
| | | | | Temporary, the fp reg handling will get reworked at some point in the near future. But before that, there's a few bugs to find.
* nv40: s/free/FREE/Ben Skeggs2008-03-211-2/+2
|
* nv40: "implement" noise opcodes in fragprogBen Skeggs2008-03-191-0/+6
| | | | | For the moment, we do what NVIDIA does and return 0 unconditionally. This isn't correct, but it's an implementation at least.
* nv40: a few more fp opcodesBen Skeggs2008-03-171-2/+48
|
* nv40: simple swtnl path (half broken, but getting there)Ben Skeggs2008-03-161-1/+2
|
* nouveau: match interface changesBen Skeggs2008-03-131-6/+5
|
* nv40: nuke debugBen Skeggs2008-03-021-2/+0
|
* nv40: move "channel context" stuff into nv40_screenBen Skeggs2008-02-291-2/+2
|
* nv40: remove pipe_state struct now.Ben Skeggs2008-02-251-2/+2
|
* nv40: stateobj start out with 0 refcountBen Skeggs2008-02-221-1/+0
|
* nv40: keep track of generated context state vs current channel stateBen Skeggs2008-02-201-3/+3
|
* nv40: and vertprog..Ben Skeggs2008-02-181-4/+6
|
* nv40: get fragprog onto new state mechanismBen Skeggs2008-02-181-52/+75
|
* nouveau: match gallium code reorginisation.Ben Skeggs2008-02-161-0/+842
That was... fun..