summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv20
Commit message (Collapse)AuthorAgeFilesLines
* nv20: Fix build for the latest nouveau_class.h changes.Francisco Jerez2010-01-081-2/+2
|
* nouveau: rewrite nouveau_stateobj to use BEGIN_RING properlyMaarten Maathuis2010-01-051-1/+0
| | | | | | | | | - 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-055-375/+424
|
* Merge commit 'origin/gallium-draw-retval'Keith Whitwell2010-01-052-6/+5
|\ | | | | | | | | Conflicts: src/gallium/drivers/identity/id_context.c
| * gallium: propogate draw retval changes into more driversKeith Whitwell2009-12-212-6/+5
| |
* | nouveau: Fix glTexSubImage on swizzled surfaces on <=NV40Luca Barbieri2009-12-301-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently in nvXX_transfer_new a temporary as large as the surface is created. If the subrectangle is not the whole texture we would need to read back the whole texture, but we aren't. Thus, everything but the subrectangle specified is loaded as garbage. This can be seen in progs/demos/ray. This patch fixes the problem by creating a temporary that covers only the desired subrectangle. That makes us hit an alignment assert in nv04_surface_2d.c. Fix it using the point registers instead of manipulating the swizzled surface offset to account for the destination coordinates (which do not seem to have a 1024 limit). Signed-off-by: Francisco Jerez <[email protected]>
* | nouveau: Unreference state/buffer objects on context/screen destruction.Younes Manton2009-12-281-0/+3
| | | | | | | | | | | | | | | | - unreference state objects so that buffer objects are unreferenced and eventually destroyed - free channel at screen's destruction Based on Krzysztof Smiechowicz's patch.
* | nouveau: Fix nv20-40 swizzled miptree RTsLuca Barbieri2009-12-282-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | I just coded a patch that does this and seems to work fine. It must be fixed since it breaks OpenGL (or the state tracker can be changed, but it seems better to do it in the driver). The patch also fixes NV20 and NV30 in the same way. They compile but are untested. I would guess that using the 3D engine is faster for the larger levels, but the 2D engine is faster for the smaller ones (and lacks this issue).
* | gallium: add geometry shader support to galliumZack Rusin2009-12-252-9/+9
| |
* | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-222-6/+3
|\ \ | |/ |/| | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| * gallium: fix up drivers for edgeflag changesRoland Scheidegger2009-12-192-6/+3
| | | | | | | | | | several drivers which chose to ignore edgeflags might require some more work, while edgeflags never worked there they might now crash.
* | Move the remaining format pf_get_* functions to u_format.h.Michal Krol2009-12-172-3/+5
|/ | | | | Previously they depended on format blocks, but after removing those they started depending on format encoding.
* nouveau: use boolean instead of boolRoland Scheidegger2009-12-081-1/+1
|
* nouveau: Work around nv04-nv40 miptrees not matching nouveau_miptree.Younes Manton2009-12-062-0/+3
| | | | | | Thanks to Bob Gleitsmann for the patch. I'll clean this up in a better way later if noone else beats me to it.
* Merge branch 'gallium-noblocks'Roland Scheidegger2009-12-042-15/+4
|\ | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| * gallium: adapt nv drivers to interface cleanupsRoland Scheidegger2009-12-022-15/+4
| |
* | Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-011-34/+34
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * | tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-241-19/+19
| | | | | | | | | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * | tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-241-4/+4
| | | | | | | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * | tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-241-1/+1
| | | | | | | | | | | | 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.
* | | nv: Update for renamed sampler/texture state setters.Michal Krol2009-12-011-2/+2
| |/ |/|
* | gallium: fix more statetrackers/drivers for not using texture ↵Roland Scheidegger2009-11-263-23/+23
|/ | | | width/height/depth arrays
* nv20: Fix build for the last nouveau_class.h changes.Francisco Jerez2009-11-151-2/+2
| | | | | Signed-off-by: Francisco Jerez <[email protected]> Signed-off-by: Pekka Paalanen <[email protected]>
* nouveau: Support X8R8G8B8 textures on nv30, nv40 and RTs on nv10-nv40.Younes Manton2009-10-311-0/+3
|
* nouveau: implement is_{texture,buffer}_referenced properlyBen Skeggs2009-10-192-26/+3
|
* gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.Michel Dänzer2009-10-021-21/+5
| | | | | | Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags corresponding to them.
* gallium: Deprecate PIPE_CAP_S3TC.José Fonseca2009-09-161-2/+0
| | | | | No longer used. S3TC support is queried via pipe_screen::is_format_supported.
* 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.
* gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from ↵Patrice Mandin2009-07-141-0/+2
| | | | default extension list
* nouveau: return some supported zeta formatsBen Skeggs2009-07-011-0/+8
|
* nouveau: deal with PIPE_CAP_TGSI_CONT_SUPPORTEDBen Skeggs2009-07-011-0/+2
|
* nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws->Ben Skeggs2009-06-054-23/+24
|
* nouveau: move channel creation into pipe driversBen Skeggs2009-06-052-13/+10
|
* nouveau: call notifier/grobj etc funcs directlyBen Skeggs2009-06-051-11/+18
| | | | | libdrm_nouveau is linked with the winsys, there's no good reason to do all this through yet another layer.
* nv20: remove u_simple_screen usageBen Skeggs2009-06-053-41/+23
|
* gallium: Make sure we flush before some texture / buffer operations.Thomas Hellstrom2009-04-151-0/+27
| | | | | | | Also implement context member functions to optimize away those flushes whenever possible. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* gallium: remove pipe_texture::compressed fieldBrian Paul2009-04-101-1/+0
| | | | | The format field encodes compressed vs. uncompressed already. We can easily check if a texture is compressed with pf_is_compressed(texture->format).
* gallium: Clean up driver clear() interface.Michel Dänzer2009-04-042-5/+7
| | | | | Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
* gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer2009-03-262-2/+0
|
* gallium: Remove do_flip argument from surface_copyJakob Bornecrantz2009-03-131-10/+1
| | | | | | | I should have gotten most uses and implementation correctly fixed, but things might break. Feel free to blame me.
* gallium: Unify reference counting.Michel Dänzer2009-03-043-41/+22
| | | | | | | | | | | | | | 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().
* nouveau: Grab correct surface from temp texture for transfers.Younes Manton2009-03-021-1/+1
|
* nouveau: nv04-nv40 texture transfer.Younes Manton2009-02-256-61/+256
|
* gallium: Improve makefiles for librariesJakob Bornecrantz2009-02-201-10/+1
| | | | | | | | The template makefile that most libraries in gallium included was based on dri and had a bunch unrelevant junk in it. Update it and improve the depending makefiles.
* Merge commit 'origin/draw-vbuf-interface'Keith Whitwell2009-02-181-15/+43
|\
| * nv20: Use the new draw vbuf interfaceJakob Bornecrantz2009-02-171-15/+43
| |
* | util: Move p_debug.h into util module.José Fonseca2009-02-181-1/+1
|/ | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.