From 1ffac44e83a6fa6f486c6493e1d4eda259938ebb Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Tue, 24 Jul 2012 15:05:43 -0400 Subject: [PATCH] r600g: enable streamout only on 2.14 or latter kernel The kernel streamout support was supposed to get into 3.3 along the tiling change and thus use the same kernel version bump of 2.13 to report userspace that streamout register were supported. This is not what happen. So as streamout kernel support did not bump the kernel driver version, rely on kernel 2.14 version bump to know if streamout is enabled or not. Which means you need at least 3.4 kernel. Signed-off-by: Jerome Glisse --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 52725fc5c67..17cc8e97e5a 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -902,7 +902,7 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws) switch (rscreen->chip_class) { case R600: case EVERGREEN: - rscreen->has_streamout = rscreen->info.drm_minor >= 13; + rscreen->has_streamout = rscreen->info.drm_minor >= 14; break; case R700: rscreen->has_streamout = rscreen->info.drm_minor >= 17; -- 2.30.2