diff options
author | Fabian Bieler <[email protected]> | 2011-02-14 22:44:42 +0100 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2011-02-23 11:42:32 -0500 |
commit | 0ed5bf668db24fb56b5b359399099c89531e2a0a (patch) | |
tree | dc9540f902165faf6cafadb03a2ce519945e205b | |
parent | b65e2195c4a3aeb6179e2ec227ba0a2414efc8af (diff) |
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.
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 9d6c9bd5429..79b0d02252d 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -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; |