summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <[email protected]>2019-10-12 03:01:59 -0400
committerMarge Bot <[email protected]>2020-03-03 12:28:23 +0000
commit585a21ceca03b47f1b00579e43dd105bfd116fd5 (patch)
treeea6c0d9b05f5e52910e02e783da0d6d373dc6ef9 /src/mesa/state_tracker
parentbabf7357d24b88a548f50aebca74c6ffd8f81d52 (diff)
gallium: add PIPE_CAP_PSIZ_CLAMPED
This new capability indicates that the point size has been clamped. This also means that the gl_PointSize has been modified and that its value should be lowered for transform feedback, if needed. Signed-off-by: Louis-Francis Ratté-Boulianne <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Acked-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2433>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 229319af690..7b44c1b4b50 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -335,6 +335,8 @@ void st_init_limits(struct pipe_screen *screen,
if (sh == MESA_SHADER_VERTEX) {
if (screen->get_param(screen, PIPE_CAP_VIEWPORT_TRANSFORM_LOWERED))
options->LowerBuiltinVariablesXfb |= VARYING_BIT_POS;
+ if (screen->get_param(screen, PIPE_CAP_PSIZ_CLAMPED))
+ options->LowerBuiltinVariablesXfb |= VARYING_BIT_PSIZ;
}
}