From: Chia-I Wu Date: Mon, 29 Apr 2013 00:47:33 +0000 (+0800) Subject: ilo: enable SO support on GEN7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16f81fcf1ed8497f049be60cc1f1fded80318905;p=mesa.git ilo: enable SO support on GEN7 --- 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;