From 16f81fcf1ed8497f049be60cc1f1fded80318905 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 29 Apr 2013 08:47:33 +0800 Subject: [PATCH] ilo: enable SO support on GEN7 --- src/gallium/drivers/ilo/ilo_screen.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/ilo/ilo_screen.c b/src/gallium/drivers/ilo/ilo_screen.c index 1e1e751024e..737c0c44da9 100644 --- a/src/gallium/drivers/ilo/ilo_screen.c +++ b/src/gallium/drivers/ilo/ilo_screen.c @@ -325,8 +325,6 @@ 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)) - return 0; /* TODO */ return ILO_MAX_SO_BUFFERS; case PIPE_CAP_PRIMITIVE_RESTART: return false; /* TODO */ @@ -368,7 +366,10 @@ ilo_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS: return ILO_MAX_SO_BINDINGS; case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME: - return false; /* TODO */ + if (is->dev.gen >= ILO_GEN(7)) + return is->dev.has_gen7_sol_reset; + else + return false; /* TODO */ case PIPE_CAP_TGSI_CAN_COMPACT_VARYINGS: case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS: return false; -- 2.30.2