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:

committed by
Marge Bot

parent
babf7357d2
commit
585a21ceca
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user