aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv10
Commit message (Collapse)AuthorAgeFilesLines
* Drop incorrectly revived files during the 'gallium-nopointsizeminmax' merge.Francisco Jerez2010-02-101-590/+0
|
* Merge branch 'gallium-nopointsizeminmax'Roland Scheidegger2010-02-091-0/+590
|\ | | | | | | | | | | | | Conflicts: src/gallium/drivers/nv10/nv10_state.c src/gallium/drivers/nv20/nv20_state.c src/gallium/drivers/nv50/nv50_program.c
| * gallium: clean up point sprite rasterizer stateRoland Scheidegger2010-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | Don't need sprite coord origin per coord. Also, don't need separate sprite enable bit - if all coords have it diabled, then there are no point sprites (technically, there's a distinction in pre-GL3, but it only differs in having more leniency in clamping to max size, something the state tracker would need to handle and the hardware won't bother anyway). Also, use packed field for the per-coord enables. All in all, should save 3 dwords in rasterizer state (from 10 down to 7).
* | Nuke the nv0x-nv2x gallium pipe drivers.Francisco Jerez2010-02-0416-2686/+0
| |
* | nouveau: include stdio.h and u_inlines.h in all context files since embedded ↵Dave Airlie2010-02-041-0/+2
| | | | | | | | | | | | | | | | 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-026-6/+6
| |
* | nv10, nv20: Fix build.Francisco Jerez2010-02-011-1/+1
| |
* | 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.
* | Merge commit 'origin/perrtblend'Roland Scheidegger2010-01-282-10/+14
|\ \ | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_screen.c src/gallium/include/pipe/p_defines.h
| * | 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
| | |
* | | gallium: Enable multiple constant buffers for vertex and geometry shaders.Michal Krol2010-01-281-0/+1
|/ /
* | Merge branch 'gallium-noconstbuf'Roland Scheidegger2010-01-151-6/+6
|\ \ | |/ |/| | | | | | | 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-6/+6
| |
* | 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-281/+318
| |
* | Merge commit 'origin/gallium-draw-retval'Keith Whitwell2010-01-052-8/+6
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/identity/id_context.c
| * | gallium: propogate draw retval changes into more driversKeith Whitwell2009-12-212-8/+6
| | |
* | | 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.
* | | gallium: add geometry shader support to galliumZack Rusin2009-12-251-0/+1
| |/ |/|
* | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-221-6/+0
|\ \ | |/ |/| | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| * gallium: fix up drivers for edgeflag changesRoland Scheidegger2009-12-191-6/+0
| | | | | | | | | | 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-16/+4
|\ | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| * gallium: adapt nv drivers to interface cleanupsRoland Scheidegger2009-12-022-16/+4
| |
* | 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-16/+17
| | | | width/height/depth arrays
* nv10: Fix build for the last nouveau_class.h changes.Francisco Jerez2009-11-152-3/+3
| | | | | 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-25/+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: 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-053-19/+17
|
* nouveau: move channel creation into pipe driversBen Skeggs2009-06-052-11/+8
|
* nouveau: call notifier/grobj etc funcs directlyBen Skeggs2009-06-051-10/+18
| | | | | libdrm_nouveau is linked with the winsys, there's no good reason to do all this through yet another layer.
* nv10: remove u_simple_screen usageBen Skeggs2009-06-053-46/+27
|
* 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>
* 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/+8
| | | | | 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-261-1/+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-36/+24
| | | | | | | | | | | | | | 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().