diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-02-07 03:46:25 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-02-07 03:51:53 +0100 |
commit | a22bda9f80070393581c6ac512c03aa3144577ef (patch) | |
tree | 2df4d93b6e4914b8e117851607fe1ee491e270c8 /src/gallium/drivers/r600/r600_pipe.c | |
parent | c95bc1224a4b20b9470ddcb37b5f78975991073b (diff) |
r600g: correctly report supported vertex formats
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 85ad0ee968..04bbcf5f4d 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -440,9 +440,14 @@ static boolean r600_is_format_supported(struct pipe_screen* screen, retval |= PIPE_BIND_DEPTH_STENCIL; } - if ((usage & PIPE_BIND_VERTEX_BUFFER) && - r600_is_vertex_format_supported(format)) - retval |= PIPE_BIND_VERTEX_BUFFER; + if (usage & PIPE_BIND_VERTEX_BUFFER) { + struct r600_screen *rscreen = (struct r600_screen *)screen; + enum radeon_family family = r600_get_family(rscreen->radeon); + + if (r600_is_vertex_format_supported(format, family)) { + retval |= PIPE_BIND_VERTEX_BUFFER; + } + } if (usage & PIPE_BIND_TRANSFER_READ) retval |= PIPE_BIND_TRANSFER_READ; |