freedreno: fix stream-out caps vec4->components
authorRob Clark <robclark@freedesktop.org>
Fri, 31 Jul 2015 14:54:23 +0000 (10:54 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 4 Aug 2015 20:03:45 +0000 (16:03 -0400)
Should be in units of components, not vec4's

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_screen.c

index 97e4161ede216867c62ab4594c2c1b848e5b5756..bab6131678b15365317fa4b0aab82bc8e8d19716 100644 (file)
@@ -236,11 +236,11 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
                return 0;
        case PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS:
                if (is_a3xx(screen) || is_a4xx(screen))
-                       return 16   /* should only be shader out limit? */
+                       return 16 * 4;   /* should only be shader out limit? */
                return 0;
        case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS:
                if (is_a3xx(screen) || is_a4xx(screen))
-                       return 16   /* should only be shader out limit? */
+                       return 16 * 4;   /* should only be shader out limit? */
                return 0;
 
        /* Geometry shader output, unsupported. */