diff options
author | Roland Scheidegger <[email protected]> | 2014-05-29 01:21:20 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2014-05-31 22:05:14 +0200 |
commit | f49e201df95b4a46e4fd4702a6d8e6fc07657bd9 (patch) | |
tree | 287289a8540dfdc59410f58320d9a70d7fc204ac /src/gallium/docs/source | |
parent | 3b66029dd372f54c1e0e14a036668404d11fbcfb (diff) |
gallium/docs: improve documentation of render condition wrt blits.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r-- | src/gallium/docs/source/context.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index 571ee87c2dc..a9625f39edc 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -392,8 +392,10 @@ Conditional Rendering A drawing command can be skipped depending on the outcome of a query (typically an occlusion query, or streamout overflow predicate). The ``render_condition`` function specifies the query which should be checked -prior to rendering anything. Functions honoring render_condition include +prior to rendering anything. Functions always honoring render_condition include (and are limited to) draw_vbo, clear, clear_render_target, clear_depth_stencil. +The blit function (but not resource_copy_region, which seems inconsistent) +can also optionally honor the current render condition. If ``render_condition`` is called with ``query`` = NULL, conditional rendering is disabled and drawing takes place normally. @@ -465,8 +467,10 @@ 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). +scaling, format conversion, and up-/downsampling, as well as a destination clip +rectangle (scissors). It can also optionally honor the current render condition +(but either way the blit itself never contributes anything to queries currently +gathering data). 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 |