From 22c5e048bd43da78317a06ad3c6d8f0b787d7096 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 1 May 2013 17:40:50 +0800 Subject: [PATCH] ilo: fix PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS On GEN7+, is->dev.has_gen7_sol_reset is required. --- src/gallium/drivers/ilo/ilo_screen.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.30.2