We will support more than this eventually, but for now this makes u_vbuf
format-convert a few things (32-bit snorm and scaled, doubles) for us.
return FALSE;
}
- if (usage & PIPE_BIND_VERTEX_BUFFER)
- retval |= PIPE_BIND_VERTEX_BUFFER; /* XXX */
+ if (usage & PIPE_BIND_VERTEX_BUFFER &&
+ (format == PIPE_FORMAT_R32G32B32A32_FLOAT ||
+ format == PIPE_FORMAT_R32G32B32_FLOAT ||
+ format == PIPE_FORMAT_R32G32_FLOAT ||
+ format == PIPE_FORMAT_R32_FLOAT)) {
+ retval |= PIPE_BIND_VERTEX_BUFFER;
+ }
if ((usage & PIPE_BIND_RENDER_TARGET) &&
(format == PIPE_FORMAT_B8G8R8A8_UNORM ||