summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv20
Commit message (Collapse)AuthorAgeFilesLines
* nv20: Fix build -- rename Size to NrTokens.Michal Krol2009-02-101-1/+1
|
* nouveau: Frontbuffer pitch needs to be set.Younes Manton2009-02-061-0/+1
|
* nv20: copy miptree flags from nv40Pekka Paalanen2009-02-051-2/+29
| | | | | | | | | | nv20_miptree_create() should set various flags. Copy stuff over from nv40. trivial/tri does not abort on nv04 swizzled copy anymore. I still miss my triangle. Signed-off-by: Pekka Paalanen <[email protected]>
* nv04-nv40: fix nv##_surface_copy() for flippedPekka Paalanen2009-02-051-0/+1
| | | | | | | | | | If do_flipp is true, it would first do the proper copy, height would wrap around to unsigned maximum, and then it attempts to do another copy. Return after doing the proper copy. Signed-off-by: Pekka Paalanen <[email protected]>
* nv04-nv40: move 2d blit/fill code into pipe driverBen Skeggs2009-02-053-5/+26
|
* nouveau: get things building/running again after pipe_surface.buffer removalBen Skeggs2009-02-041-0/+25
| | | | Don't look at nouveau_winsys_pipe.h... I promise it's temporary!
* gallium: remove pipe_buffer from surfacesZack Rusin2009-02-023-6/+9
| | | | | | | this change disassociates, at least from the driver perspective, the surface from buffer. surfaces are technically now views on the textures so make it so by hiding the buffer in the internals of textures.
* Merge branch 'gallium-winsys-private' into gallium-0.2Zack Rusin2009-02-014-3/+5
|\
| * gallium: initialize simple screen in driversZack Rusin2009-01-311-0/+2
| |
| * gallium: make p_winsys internalZack Rusin2009-01-308-17/+17
| | | | | | | | | | move it to pipe/internal/p_winsys_screen.h and start converting the state trackers to the screen usage
| * gallium: give the screen priority when it comes to buffer allocationsZack Rusin2009-01-296-14/+14
| | | | | | | | | | | | allows the driver to overwrite buffer allocation, first step on the way to making winsys interface internal to the drivers. state trackers and the code above it will go through the screen
* | nv20: send buffer handles on hw state emitPekka Paalanen2009-01-311-6/+4
| | | | | | | | | | | | | | Color and Z buffer offsets were emitted here, now also the buffer handles are emitted so they target the correct memory. Signed-off-by: Pekka Paalanen <[email protected]>
* | nv20: disable depth writes in hw initPekka Paalanen2009-01-311-1/+1
| | | | | | | | | | | | | | Probably not necessary, but just in case. Depth registers point to the color buffer, when there is no depth buffer. Signed-off-by: Pekka Paalanen <[email protected]>
* | nv20: Z-mapping parametersPekka Paalanen2009-01-312-11/+14
| | | | | | | | | | | | | | | | | | Based on my renouveau dump, adjust initial hw state related to Z-mapping, and add one unknown depth reg into depth/stencil/alpha emission. Now trivial/tri-z on nv20 looks identical to swrast rendered one. Signed-off-by: Pekka Paalanen <[email protected]>
* | nv20: draw_elements needs to flushPekka Paalanen2009-01-311-0/+1
| | | | | | | | | | | | | | nv20_draw_elements() uses the draw module, and draw_flush() needs to be called to actually emit the vertices immediately. Signed-off-by: Pekka Paalanen <[email protected]>
* | nv20: set surface status in clear()Pekka Paalanen2009-01-311-0/+1
|/ | | | | | Other nvXX drivers seem to do this, so I do it too. Signed-off-by: Pekka Paalanen <[email protected]>
* gallium: remove redundant size from the constant bufferZack Rusin2009-01-271-3/+4
| | | | reuse the size of the actual buffer
* gallium: it's a reference value, not a reference numberZack Rusin2009-01-271-1/+1
|
* gallium: standardize naming of masksZack Rusin2009-01-271-2/+2
|
* nv20: rewrite vertex layoutPekka Paalanen2009-01-261-26/+59
| | | | | | | | | | NV20 seems to be very different to NV10. In vertex array, pos is first, not last. There are maximum 16 attributes and only few are currently known. This makes trivial/tri work on NV20. Signed-off-by: Pekka Paalanen <[email protected]>
* nv20: adjust initial hw contextPekka Paalanen2009-01-261-5/+5
| | | | | | | | VIEWPORT_SCALE0 seems to do with translation and the sane value for x and y is zero. VIEWPORT_SCALE1 is still a mystery. Signed-off-by: Pekka Paalanen <[email protected]>
* gallium: Remove the standalone surfaces.José Fonseca2009-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This commit is mostly just a cosmetic change that cleans-up the interfaces, replacing pipe_winsys::surface_* calls by /** * Allocate storage for a display target surface. * * Often surfaces which are meant to be blitted to the front screen (i.e., * display targets) must be allocated with special characteristics, memory * pools, or obtained directly from the windowing system. * * This callback is invoked by the pipe_screenwhen creating a texture marked * with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag to get the underlying * buffer storage. */ struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws, unsigned width, unsigned height, enum pipe_format format, unsigned usage, unsigned *stride); Most drivers were updated but not all were tested. Use the softpipe pipe driver and the xlib winsys changes as a reference when fixing other drivers.
* nouveau: return a value for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITSBen Skeggs2008-12-161-0/+2
|
* Nouveau: move the definition of log2i() to headerPekka Paalanen2008-12-131-26/+1
| | | | | | | Also make the type unsigned instead of signed, since negative values do not make sense. Signed-off-by: Pekka Paalanen <[email protected]>
* nouveau: make nv20 use NV{20,25}TCL objectsPekka Paalanen2008-12-076-252/+367
| | | | | | | Up till now, nv20 driver has been using NV10TCL, and being really an nv10 driver. That has changed. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: nv{10,20} set_primitive API fixPekka Paalanen2008-11-301-2/+7
| | | | | | | Also changes nvgl_primitive() to return zero, i.e. error, on unknown primitive. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: nv20 build fix: forgotten includePekka Paalanen2008-11-301-0/+1
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: fix minor API change in surface_copyPekka Paalanen2008-11-301-1/+1
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: update nouveau_class.hPekka Paalanen2008-11-301-1/+1
| | | | | | Fresh from renouveau. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: nv20 (nv10) immediate vertex submissionPekka Paalanen2008-11-301-35/+191
| | | | | | This is nv10 commands, but is in nv20 source files. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: properly redo nv20_vertex_layout.Pekka Paalanen2008-11-301-15/+68
| | | | | | This is still for NV10 hardware. Signed-off-by: Pekka Paalanen <[email protected]>
* nv04..nv30: fix pipe_surface initPekka Paalanen2008-11-121-0/+2
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: fix nv20_vertex_layout()Pekka Paalanen2008-11-091-7/+7
| | | | | | | | | The function should update nv20->vertex_info, and not just a local struct that's thrown away immediately. Fixes a SIGFPE due to vbuf->vertex_size = 0 in vbuf_alloc_vertices(). Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: update nv20 miptree according to nv40.Pekka Paalanen2008-11-081-11/+18
| | | | | | glxinfo doesn't degfault anymore. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: name replace for nv20.Pekka Paalanen2008-11-0816-662/+662
| | | | | | | | | | | | No functional changes, only changed function, struct, macro etc. names. nv10 -> nv20 nv30 -> nv20 celsius -> kelvin Did not touch fifo command macros. Don't try to build nv20_vertprog.c for now. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: Rename nv20/ files as nv20.Pekka Paalanen2008-11-0816-12/+13
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: copy nv30_vertprog.c to nv20.Pekka Paalanen2008-11-081-0/+838
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: start nv20 by copying the nv10 tree.Pekka Paalanen2008-11-0815-0/+2447
Signed-off-by: Pekka Paalanen <[email protected]>