summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv04/nv04_transfer.c
Commit message (Collapse)AuthorAgeFilesLines
* Nuke the nv0x-nv2x gallium pipe drivers.Francisco Jerez2010-02-041-178/+0
|
* gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca2010-02-021-1/+1
|
* 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]>
* Move the remaining format pf_get_* functions to u_format.h.Michal Krol2009-12-171-1/+2
| | | | | 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
|
* gallium: adapt nv drivers to interface cleanupsRoland Scheidegger2009-12-021-8/+1
|
* gallium: fix more statetrackers/drivers for not using texture ↵Roland Scheidegger2009-11-261-3/+4
| | | | width/height/depth arrays
* 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: 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: Unify reference counting.Michel Dänzer2009-03-041-8/+3
| | | | | | | | | | | | | | 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-251-0/+201