summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-11 15:16:09 +0200
committerMarek Olšák <[email protected]>2012-04-24 01:39:22 +0200
commit79eafc14ca70a684b4ea8b89723c1dad3e61eb3d (patch)
tree37da11d51875638eaea78b1c881ad3bfe7f9027e /src/gallium
parent428855eea3e99d94474df6df0cb8dfc4a8819702 (diff)
i915g: report that all vertex formats are supported
So that u_vbuf isn't enabled.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915/i915_screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c
index b147e61bf46..1546ee80230 100644
--- a/src/gallium/drivers/i915/i915_screen.c
+++ b/src/gallium/drivers/i915/i915_screen.c
@@ -337,8 +337,10 @@ i915_is_format_supported(struct pipe_screen *screen,
list = depth_supported;
else if (tex_usage & PIPE_BIND_RENDER_TARGET)
list = render_supported;
- else
+ else if (tex_usage & PIPE_BIND_SAMPLER_VIEW)
list = tex_supported;
+ else
+ return TRUE; /* PIPE_BIND_{VERTEX,INDEX}_BUFFER */
for (i = 0; list[i] != PIPE_FORMAT_NONE; i++) {
if (list[i] == format)