summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30
Commit message (Collapse)AuthorAgeFilesLines
* nouveau: Fix warning for void function returning value. Add missing include ↵Patrice Mandin2010-02-051-4/+3
| | | | | | for pipe_reference_init function. Signed-off-by: Patrice Mandin <[email protected]>
* Nuke the nv0x-nv2x gallium pipe drivers.Francisco Jerez2010-02-042-2/+2
|
* nouveau: include stdio.h and u_inlines.h in all context files since embedded ↵Dave Airlie2010-02-041-0/+3
| | | | | | | | changes fixes nouveau build for me. Signed-off-by: Dave Airlie <[email protected]>
* gallium: Move deprecated pipe/internal/p_winsys_screen.h inside ↵José Fonseca2010-02-022-2/+2
| | | | util/u_simple_screen.h
* gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca2010-02-027-7/+7
|
* nv50/nv40/nv30: fix small memory leak of nouveau_resources on screen_destroyMarcin Slusarz2010-02-011-3/+3
| | | | Signed-off-by: Francisco Jerez <[email protected]>
* tgsi: add caps for fragment coord conventions (v3)Luca Barbieri2010-01-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v3: - Renumber caps to accomodate caps to add to master in the meantime - Document caps - Add unsupported caps to *_screen.c too Changes in v2: - Split for properties patch - Use positive caps instead of negative caps This adds 4 caps to indicate support of each of the fragment coord conventions. All drivers are also modifed to add the appropriate caps. Some drivers were incorrectly using non-Gallium-default conventions, and caps for them have them set so that they will behave correctly after the later state tracker patches. This drivers are softpipe/llvmpipe (uses integer rather than half integer) and pre-nv50 Nouveau (uses lower left rather than upper left). Other drivers might be broken. With this patchset, fixing them is only a matter of exposing the appropriate caps that match the behavior of the existing code. Drivers are encouraged to support all conventions themselves for better performance, and this feature is added to softpipe in a later patch.
* gallium: add the new PIPE_CAP blend bits to more driversRoland Scheidegger2010-01-261-0/+4
| | | | some drivers will complain if they don't know the cap bit
* nouveau: adapt drviers to blend changesRoland Scheidegger2010-01-251-10/+10
|
* nouveau: nv30: Remove useless variables fs, txp. Also do not change txf, as ↵Patrice Mandin2010-01-151-9/+1
| | | | | | bit 13 is in the texture format Signed-off-by: Patrice Mandin <[email protected]>
* 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-055-72/+91
| |
* | Merge commit 'origin/gallium-draw-retval'Keith Whitwell2010-01-052-12/+8
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/identity/id_context.c
| * | gallium: propogate draw retval changes into more driversKeith Whitwell2009-12-212-12/+8
| | |
* | | 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-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-224-17/+3
|\ \ | |/ |/| | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| * gallium: fix up drivers for edgeflag changesRoland Scheidegger2009-12-194-17/+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: 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.
* | Revert "nouveau: nv30: Disable swizzled surface usage if any dimension is 1 ↵Patrice Mandin2009-12-121-3/+0
| | | | | | | | | | | | (Warsow creates a 1x1 front buffer)" This reverts commit ec7844537ecdb0b598447e37bf0b7120acd029f3.
* | nouveau: nv30: Disable swizzled surface usage if any dimension is 1 (Warsow ↵Patrice Mandin2009-12-121-0/+3
|/ | | | creates a 1x1 front buffer)
* 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-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-75/+75
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * | tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-242-41/+41
| | | | | | | | | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * | tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-242-9/+9
| | | | | | | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * | tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-242-6/+6
| | | | | | | | | | | | DeclarationRange -> Range
| * | tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-242-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | InstructionPredicate -> Predicate InstructionLabel -> Label InstructionTexture -> Texture FullSrcRegisters -> Src FullDstRegisters -> Dst
| * | tgsi: reduce repetition of structure name in its membersKeith Whitwell2009-11-242-13/+13
| | | | | | | | | | | | | | | 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
| |/ |/|
* | Merge branch 'width0'Roland Scheidegger2009-11-273-27/+26
|\ \ | |/ |/| | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_texture.c src/gallium/state_trackers/xorg/xorg_exa.c src/mesa/state_tracker/st_cb_texture.c
| * gallium: fix more statetrackers/drivers for not using texture ↵Roland Scheidegger2009-11-263-27/+26
| | | | | | | | width/height/depth arrays
* | nouveau: nv30: Check for NULL front (happens with DRI2)Patrice Mandin2009-11-171-1/+4
| |
* | nouveau: nv30: Add missing include to fix warningPatrice Mandin2009-11-171-4/+5
|/
* 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
|
* nouveau: nv30: Relax some limits. We can render to z24s8 buffer even if ↵Patrice Mandin2009-10-232-3/+9
| | | | color buffer is 16 bits.
* nouveau: nv30: use r5g6b5 as z16 formatPatrice Mandin2009-10-231-1/+1
|
* gallium: remove extended negate also, and also the ExtSwz tokenKeith Whitwell2009-10-231-15/+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-19/+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.