diff options
author | Rhys Perry <[email protected]> | 2018-06-14 19:56:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-06-14 20:09:45 -0600 |
commit | 51a221e37869235ad5c81bbfec06a2564b3b2d3b (patch) | |
tree | 1b81ac61ab2cf2411f42944eb246c2d53af2c358 /src/gallium/docs/source/context.rst | |
parent | 67f40dadaa6666dacd90d1540eaadef20b9d48ba (diff) |
gallium: add support for programmable sample locations
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Brian Paul <[email protected]> (v2)
Reviewed-by: Marek Olšák <[email protected]> (v2)
Diffstat (limited to 'src/gallium/docs/source/context.rst')
-rw-r--r-- | src/gallium/docs/source/context.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index e8e80dcbc39..20d0df79312 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -68,6 +68,9 @@ objects. They all follow simple, one-method binding calls, e.g. that this takes effect even if multisampling is not explicitly enabled if the frambuffer surface(s) are multisampled. Also, this mask is AND-ed with the optional fragment shader sample mask output (when emitted). +* ``set_sample_locations`` sets the sample locations used for rasterization. + ```get_sample_position``` still returns the default locations. When NULL, + the default locations are used. * ``set_min_samples`` sets the minimum number of samples that must be run. * ``set_clip_state`` * ``set_polygon_stipple`` @@ -270,6 +273,17 @@ format. multi-byte element value starting at offset bytes from resource start, going for size bytes. It is guaranteed that size % clear_value_size == 0. +Evaluating Depth Buffers +^^^^^^^^^^^^^^^^^^^^^^^^ + +``evaluate_depth_buffer`` is a hint to decompress the current depth buffer +assuming the current sample locations to avoid problems that could arise when +using programmable sample locations. + +If a depth buffer is rendered with different sample location state than +what is current at the time of reading the depth buffer, the values may differ +because depth buffer compression can depend the sample locations. + Uploading ^^^^^^^^^ |