summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'gallium-noconstbuf'Roland Scheidegger2010-01-151-3/+3
|\ | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c src/mesa/state_tracker/st_draw_feedback.c
| * gallium: remove const qualifier from pipe_buffer argument in set_constant_bufferRoland Scheidegger2010-01-111-1/+1
| |
| * gallium: adapt drivers to pipe_constant_buffer removalRoland Scheidegger2009-12-241-3/+3
| |
* | nouveau: rewrite nouveau_stateobj to use BEGIN_RING properlyMaarten Maathuis2010-01-0511-18/+17
| | | | | | | | | | | | | | | | | | - 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-057-103/+133
| |
* | Merge commit 'origin/gallium-draw-retval'Keith Whitwell2010-01-053-20/+15
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/identity/id_context.c
| * | gallium: propogate draw retval changes into more driversKeith Whitwell2009-12-213-20/+15
| | |
* | | 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-283-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | - 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).
* | | 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.
* | | gallium: add geometry shader support to galliumZack Rusin2009-12-251-2/+3
| |/ |/|
* | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-225-18/+4
|\ \ | |/ |/| | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| * gallium: fix up drivers for edgeflag changesRoland Scheidegger2009-12-195-18/+4
| | | | | | | | | | 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: avoid running out of relocsMaarten Maathuis2009-12-143-1/+13
|/ | | | | | | - Added flush notify functions for NV30 and NV40. - Flushing mid frame will call flush notify, which will resubmit all relocs. - We don't try to recover from reloc failure yet.
* 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-1/+5
| | | | | | 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-16/+4
|\ | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| * gallium: adapt nv drivers to interface cleanupsRoland Scheidegger2009-12-022-16/+4
| |
* | Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-012-86/+86
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * | tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-242-43/+43
| | | | | | | | | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * | tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-242-13/+13
| | | | | | | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * | tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-242-9/+9
| | | | | | | | | | | | DeclarationRange -> Range
| * | tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-242-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | InstructionPredicate -> Predicate InstructionLabel -> Label InstructionTexture -> Texture FullSrcRegisters -> Src FullDstRegisters -> Dst
| * | tgsi: reduce repetition of structure name in its membersKeith Whitwell2009-11-242-14/+14
| | | | | | | | | | | | | | | 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-242-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-25/+24
|/ | | | width/height/depth arrays
* nouveau: Assume all texture blankets are linear for now.Younes Manton2009-11-011-0/+3
|
* nouveau: Support X8R8G8B8 textures on nv30, nv40 and RTs on nv10-nv40.Younes Manton2009-10-312-0/+4
|
* gallium: remove extended negate also, and also the ExtSwz tokenKeith Whitwell2009-10-232-42/+4
| | | | | | 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-232-26/+10
| | | | | | | | | 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.
* nouveau: implement is_{texture,buffer}_referenced properlyBen Skeggs2009-10-192-33/+3
|
* nouveau: nv40: Use same workaround as i915 for segfault related to vboPatrice Mandin2009-10-171-6/+13
|
* 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-222-8/+8
| | | | | | | | | | | | | 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-012-0/+9
|
* nouveau: deal with PIPE_CAP_TGSI_CONT_SUPPORTEDBen Skeggs2009-07-011-0/+2
|
* nouveau: Expect right params to tex_transfer_destroy().Younes Manton2009-06-291-1/+1
| | | | | Never crashed on x86, ptx is in the same stack slot in either case. Thanks to Bob Gleitsmann for catching this.
* nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws->Ben Skeggs2009-06-054-28/+34
|
* nouveau: move channel creation into pipe driversBen Skeggs2009-06-055-73/+77
|
* nouveau: call notifier/grobj etc funcs directlyBen Skeggs2009-06-053-42/+45
| | | | | libdrm_nouveau is linked with the winsys, there's no good reason to do all this through yet another layer.
* nv40: remove u_simple_screen usageBen Skeggs2009-06-055-50/+32
|
* nouveau: pass nouveau_bo instead of pipe_buffer to so_ callsBen Skeggs2009-06-055-12/+21
|
* nouveau: call nouveau_pushbuf directly rather than going through nvwsBen Skeggs2009-06-051-1/+1
|
* gallium: Make sure we flush before some texture / buffer operations.Thomas Hellstrom2009-04-151-0/+26
| | | | | | | Also implement context member functions to optimize away those flushes whenever possible. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>