From: Dave Airlie Date: Thu, 23 Jan 2020 06:20:20 +0000 (+1000) Subject: llvmpipe: advertise 4 vertex streams X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbc117cba311ed086ba7885e6df423ce5ae114b7;p=mesa.git llvmpipe: advertise 4 vertex streams Reviewed-by: Roland Scheidegger Tested-by: Marge Bot Part-of: --- diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index e951baa0653..d0002df5f79 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -203,8 +203,10 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_MAX_GEOMETRY_OUTPUT_VERTICES: case PIPE_CAP_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS: return 1024; - case PIPE_CAP_MAX_VERTEX_STREAMS: - return 1; + case PIPE_CAP_MAX_VERTEX_STREAMS: { + struct llvmpipe_screen *lscreen = llvmpipe_screen(screen); + return lscreen->use_tgsi ? 1 : 4; + } case PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE: return 2048; case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME: