From babf7357d24b88a548f50aebca74c6ffd8f81d52 Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Sat, 12 Oct 2019 02:59:53 -0400 Subject: gallium: add PIPE_CAP_VIEWPORT_TRANSFORM_LOWERED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This new capability indicates that the nir_lower_viewport_transform pass is enabled. This also means that the gl_Position value is modified and should be lowered for transform feedback, if needed. Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Alyssa Rosenzweig Acked-by: Daniel Stone Part-of: --- src/gallium/auxiliary/util/u_screen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/auxiliary/util/u_screen.c') diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 510c46aca5f..d94f082ba96 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -417,6 +417,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_PACKED_STREAM_OUTPUT: return 1; + case PIPE_CAP_VIEWPORT_TRANSFORM_LOWERED: + return 0; + default: unreachable("bad PIPE_CAP_*"); } -- cgit v1.2.3