mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 23:18:17 +02:00
r600g: Request DWORD aligned vertex buffers.
The spec says that the offsets in the vertex-fetch instructions need to be byte-aligned and makes no specification with regard to the required alignment of the offset and stride in the vertex resource constant register. However, testing indicates that all three values need to be DWORD aligned.
This commit is contained in:
parent
b65e2195c4
commit
0ed5bf668d
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
|
|||
PIPE_BIND_VERTEX_BUFFER |
|
||||
PIPE_BIND_INDEX_BUFFER |
|
||||
PIPE_BIND_CONSTANT_BUFFER,
|
||||
U_VERTEX_FETCH_BYTE_ALIGNED);
|
||||
U_VERTEX_FETCH_DWORD_ALIGNED);
|
||||
if (!rctx->vbuf_mgr) {
|
||||
r600_destroy_context(&rctx->context);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue