Module: Mesa
Branch: main
Commit: 070d02b04b4cd1d1dde43eda43996809ba25e187
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=070d02b04b4cd1d1dde43eda43996809ba25e187

Author: Yonggang Luo <[email protected]>
Date:   Thu Jun  1 23:06:19 2023 +0800

docs: Update document about pipe_prim_type with mesa_prim

Signed-off-by: Yonggang Luo <[email protected]>
Acked-by: Marek Olšák <[email protected]>
Acked-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23369>

---

 docs/gallium/screen.rst | 4 ++--
 docs/gallium/tgsi.rst   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/gallium/screen.rst b/docs/gallium/screen.rst
index 951b05898fc..8feae2ee50d 100644
--- a/docs/gallium/screen.rst
+++ b/docs/gallium/screen.rst
@@ -631,8 +631,8 @@ The integer capabilities:
 * ``PIPE_CAP_SAMPLER_REDUCTION_MINMAX``: Driver supports EXT min/max sampler 
reduction.
 * ``PIPE_CAP_SAMPLER_REDUCTION_MINMAX_ARB``: Driver supports ARB min/max 
sampler reduction with format queries.
 * ``PIPE_CAP_EMULATE_NONFIXED_PRIMITIVE_RESTART``: Driver requests all draws 
using a non-fixed restart index to be rewritten to use a fixed restart index.
-* ``PIPE_CAP_SUPPORTED_PRIM_MODES``: A bitmask of the ``pipe_prim_type`` enum 
values that the driver can natively support.
-* ``PIPE_CAP_SUPPORTED_PRIM_MODES_WITH_RESTART``: A bitmask of the 
``pipe_prim_type`` enum values that the driver can natively support for 
primitive restart. Only useful if ``PIPE_CAP_PRIMITIVE_RESTART`` is also 
exported.
+* ``PIPE_CAP_SUPPORTED_PRIM_MODES``: A bitmask of the ``mesa_prim`` enum 
values that the driver can natively support.
+* ``PIPE_CAP_SUPPORTED_PRIM_MODES_WITH_RESTART``: A bitmask of the 
``mesa_prim`` enum values that the driver can natively support for primitive 
restart. Only useful if ``PIPE_CAP_PRIMITIVE_RESTART`` is also exported.
 * ``PIPE_CAP_PREFER_BACK_BUFFER_REUSE``: Only applies to DRI_PRIME. If 1, the 
driver prefers that DRI3 tries to use the same back buffer each frame. If 0, 
this means DRI3 will at least use 2 back buffers and ping-pong between them to 
allow the tiled->linear copy to run in parallel.
 * ``PIPE_CAP_DRAW_VERTEX_STATE``: Driver supports 
``pipe_screen::create_vertex_state/vertex_state_destroy`` and 
``pipe_context::draw_vertex_state``. Only used by display lists and designed to 
serve vbo_save.
 * ``PIPE_CAP_PREFER_POT_ALIGNED_VARYINGS``: Driver prefers varyings to be 
aligned to power of two in a slot. If this cap is enabled, vec4 varying will be 
placed in .xyzw components of the varying slot, vec3 in .xyz and vec2 in .xy or 
.zw
diff --git a/docs/gallium/tgsi.rst b/docs/gallium/tgsi.rst
index a0affccb9ba..0ed91bea1a0 100644
--- a/docs/gallium/tgsi.rst
+++ b/docs/gallium/tgsi.rst
@@ -3756,8 +3756,8 @@ as well.
 TES_PRIM_MODE
 """""""""""""
 
-This sets the tessellation primitive mode, one of ``PIPE_PRIM_TRIANGLES``,
-``PIPE_PRIM_QUADS``, or ``PIPE_PRIM_LINES``. (Unlike in GL, there is no
+This sets the tessellation primitive mode, one of ``MESA_PRIM_TRIANGLES``,
+``MESA_PRIM_QUADS``, or ``MESA_PRIM_LINES``. (Unlike in GL, there is no
 separate isolines settings, the regular lines is assumed to mean isolines.)
 
 TES_SPACING

Reply via email to