vc4: Texture format support has nothing to do with VBO format support.
authorEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 22:55:45 +0000 (15:55 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Aug 2014 21:03:35 +0000 (14:03 -0700)
This was inherited from freedreno, but doesn't apply to us.

src/gallium/drivers/vc4/vc4_screen.c

index 4ddc9acba93b03366092115892142a500749aa9d..08419306f431ca6f76a29a62abb14426d5f70d9b 100644 (file)
@@ -356,8 +356,7 @@ vc4_screen_is_format_supported(struct pipe_screen *pscreen,
 
         if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
             (vc4_get_texture_format(format) != ~0)) {
-                retval |= usage & (PIPE_BIND_SAMPLER_VIEW |
-                                   PIPE_BIND_VERTEX_BUFFER);
+                retval |= PIPE_BIND_SAMPLER_VIEW;
         }
 
         if ((usage & PIPE_BIND_DEPTH_STENCIL) &&