Mesa (master): gallium: document conservative rasterization flags
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 24 01:21:07 UTC 2019
Module: Mesa
Branch: master
Commit: d9838f653a48e06d1518aca86613f27f2c2293ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9838f653a48e06d1518aca86613f27f2c2293ac
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Apr 19 19:11:34 2019 -0400
gallium: document conservative rasterization flags
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/gallium/docs/source/screen.rst | 5 +++++
src/gallium/include/pipe/p_defines.h | 11 +++++++++++
2 files changed, 16 insertions(+)
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index 59c0103539c..fcb16aebe2d 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -456,10 +456,15 @@ The integer capabilities:
as opposed to padding to vec4s.
* ``PIPE_CAP_CONSERVATIVE_RASTER_POST_SNAP_TRIANGLES``: Whether the
``PIPE_CONSERVATIVE_RASTER_POST_SNAP`` mode is supported for triangles.
+ The post-snap mode means the conservative rasterization occurs after
+ the conversion from floating-point to fixed-point coordinates
+ on the subpixel grid.
* ``PIPE_CAP_CONSERVATIVE_RASTER_POST_SNAP_POINTS_LINES``: Whether the
``PIPE_CONSERVATIVE_RASTER_POST_SNAP`` mode is supported for points and lines.
* ``PIPE_CAP_CONSERVATIVE_RASTER_PRE_SNAP_TRIANGLES``: Whether the
``PIPE_CONSERVATIVE_RASTER_PRE_SNAP`` mode is supported for triangles.
+ The pre-snap mode means the conservative rasterization occurs before
+ the conversion from floating-point to fixed-point coordinates.
* ``PIPE_CAP_CONSERVATIVE_RASTER_PRE_SNAP_POINTS_LINES``: Whether the
``PIPE_CONSERVATIVE_RASTER_PRE_SNAP`` mode is supported for points and lines.
* ``PIPE_CAP_CONSERVATIVE_RASTER_POST_DEPTH_COVERAGE``: Whether
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 61c1a5335b5..304c3dcb2bb 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -644,7 +644,18 @@ enum pipe_reset_status
enum pipe_conservative_raster_mode
{
PIPE_CONSERVATIVE_RASTER_OFF,
+
+ /**
+ * The post-snap mode means the conservative rasterization occurs after
+ * the conversion from floating-point to fixed-point coordinates
+ * on the subpixel grid.
+ */
PIPE_CONSERVATIVE_RASTER_POST_SNAP,
+
+ /**
+ * The pre-snap mode means the conservative rasterization occurs before
+ * the conversion from floating-point to fixed-point coordinates.
+ */
PIPE_CONSERVATIVE_RASTER_PRE_SNAP,
};
More information about the mesa-commit
mailing list