diff options
author | Marek Olšák <[email protected]> | 2012-09-12 01:36:31 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-09-30 18:57:56 +0200 |
commit | c4df2e333765164e0d4926f03b969a3c9fdca691 (patch) | |
tree | ffe02213ffc69fefe2257cfdd659c0870ef03a51 /src/gallium/docs/source/context.rst | |
parent | b9c9dd4783f77020aaed28b3c2a29b5f1a3a941f (diff) |
gallium: add blit into the interface
Tested-by: Michel Dänzer <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/docs/source/context.rst')
-rw-r--r-- | src/gallium/docs/source/context.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index 4555c384453..29b38e50e4e 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -434,6 +434,15 @@ formats, i.e., formats for which copying the bytes from the source resource unmodified to the destination resource will achieve the same effect of a textured quad blitter.. The source and destination may be the same resource, but overlapping blits are not permitted. +This can be considered the equivalent of a CPU memcpy. + +``blit`` blits a region of a resource to a region of another resource, including +scaling, format conversion, and up-/downsampling, as well as +a destination clip rectangle (scissors). +As opposed to manually drawing a textured quad, this lets the pipe driver choose +the optimal method for blitting (like using a special 2D engine), and usually +offers, for example, accelerated stencil-only copies even where +PIPE_CAP_SHADER_STENCIL_EXPORT is not available. ``resource_resolve`` resolves a multisampled resource into a non-multisampled one. Their formats must match. This function must be present if a driver |