From: Chia-I Wu Date: Wed, 1 May 2013 09:40:50 +0000 (+0800) Subject: ilo: fix PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22c5e048bd43da78317a06ad3c6d8f0b787d7096;p=mesa.git ilo: fix PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS On GEN7+, is->dev.has_gen7_sol_reset is required. --- diff --git a/src/gallium/drivers/ilo/ilo_screen.c b/src/gallium/drivers/ilo/ilo_screen.c index 737c0c44da9..31a05dfefdb 100644 --- a/src/gallium/drivers/ilo/ilo_screen.c +++ b/src/gallium/drivers/ilo/ilo_screen.c @@ -325,6 +325,8 @@ ilo_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_SM3: return true; case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS: + if (is->dev.gen >= ILO_GEN(7) && !is->dev.has_gen7_sol_reset) + return 0; return ILO_MAX_SO_BUFFERS; case PIPE_CAP_PRIMITIVE_RESTART: return false; /* TODO */