r600g: enable streamout only on 2.14 or latter kernel
authorJerome Glisse <jglisse@redhat.com>
Tue, 24 Jul 2012 19:05:43 +0000 (15:05 -0400)
committerJerome Glisse <jglisse@redhat.com>
Tue, 24 Jul 2012 19:08:31 +0000 (15:08 -0400)
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 <jglisse@redhat.com>
src/gallium/drivers/r600/r600_pipe.c

index 52725fc5c67ef376d86e8f4642fb08bf9b08f7fb..17cc8e97e5a501ddfac8b3d6d647458212b7a837 100644 (file)
@@ -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;