diff options
author | Chia-I Wu <[email protected]> | 2013-05-01 17:40:50 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-01 17:41:39 +0800 |
commit | 22c5e048bd43da78317a06ad3c6d8f0b787d7096 (patch) | |
tree | e9c37117b90c4e11d4b4de5be50c15dc6a524a9e /src/gallium/drivers | |
parent | 16f81fcf1ed8497f049be60cc1f1fded80318905 (diff) |
ilo: fix PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS
On GEN7+, is->dev.has_gen7_sol_reset is required.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |