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 <lfrb@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2433>
This commit is contained in:
Louis-Francis Ratté-Boulianne
2019-10-12 03:01:59 -04:00
committed by Marge Bot
parent babf7357d2
commit 585a21ceca
3 changed files with 4 additions and 0 deletions

View File

@@ -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;
}
}