summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40/nv40_vertprog.c
Commit message (Collapse)AuthorAgeFilesLines
* nv30, nv40: non-trivially unify nv[34]0_vertprog.cLuca Barbieri2010-03-151-1048/+0
| | | | | | | | | | | | | | | | 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
* nv30, nv40: non-trivially partially unify nv[34]0_shader.hLuca Barbieri2010-03-151-83/+83
| | | | | | | | | | | | 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-42/+42
| | | | | | | | | | | | | | | | | | | 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-7/+7
| | | | | | | 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-11/+11
| | | | | | | | | | | 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.
* Grammar and spelling fixesJeff Smith2010-03-121-1/+1
| | | | | Signed-off-by: Jeff Smith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* 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: kill nouveau_push.h and use libdrm versions of BEGIN_RINGs, etcMarcin Slusarz2010-01-051-8/+10
|
* gallium: fix up drivers for edgeflag changesRoland Scheidegger2009-12-191-0/+4
| | | | | several drivers which chose to ignore edgeflags might require some more work, while edgeflags never worked there they might now crash.
* tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-241-20/+20
| | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
* tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-241-8/+8
| | | | | DstRegister -> Register DstRegisterInd -> Indirect
* tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-241-5/+5
| | | | DeclarationRange -> Range
* tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-241-5/+5
| | | | | | | | 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: 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-4/+5
|
* nouveau: call notifier/grobj etc funcs directlyBen Skeggs2009-06-051-11/+8
| | | | | libdrm_nouveau is linked with the winsys, there's no good reason to do all this through yet another layer.
* nouveau: make stateobjs start off with refcount of 1Ben Skeggs2009-03-071-0/+1
|
* nv40: Fix build -- rename Size to NrTokens.Michal Krol2009-02-101-1/+1
|
* nv40: apply ABS modifier to RSQ source in vpBen Skeggs2008-12-161-1/+1
| | | | Gallium used to do this for us :)
* nouveau: fix buildBen Skeggs2008-08-071-2/+2
|
* nouveau: update for interface changes + hack around gallium x86_64 bustageBen Skeggs2008-06-231-5/+5
|
* nv40: a couple of memory leaksBen Skeggs2008-05-301-0/+6
|
* nv40: implement user clip planesBen Skeggs2008-04-071-78/+81
| | | | | | | | | It turns out the user planes handed to the driver are already in clip space. Hence, we no longer need to transform incoming vertices before computing the clip distance, and no longer need to change the interface provided by gallium. Yay :) The clip state change handling could be better, but this works.
* nv40: fix slight thinkoBen Skeggs2008-03-311-10/+5
|
* nv40: support vp clip distance regs, unused currently.Ben Skeggs2008-03-311-3/+103
|
* nv40: vp 1/0/- swzBen Skeggs2008-03-301-1/+73
|
* nv40: vp const/immd fixBen Skeggs2008-03-301-6/+14
|
* nv40: vp reg changes similar to recent fp changesBen Skeggs2008-03-231-20/+86
|
* nv40: s/free/FREE/Ben Skeggs2008-03-211-4/+4
|
* nv40: simple swtnl path (half broken, but getting there)Ben Skeggs2008-03-161-4/+12
|
* nouveau: match interface changesBen Skeggs2008-03-131-2/+2
|
* nv40: move "channel context" stuff into nv40_screenBen Skeggs2008-02-291-4/+4
|
* 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-17/+40
|
* nouveau: match gallium code reorginisation.Ben Skeggs2008-02-161-0/+790
That was... fun..