diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-11-03 15:20:55 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-11-03 16:39:40 +0100 |
commit | ca0f515f851f04a3849ac049868825e94382681d (patch) | |
tree | 06fa0a6d278057fe6177e78db5c516dc4ba338b2 | |
parent | eadbcb221db16af96aa6c3f40d48896d23d9eebc (diff) |
-rw-r--r-- | src/gallium/drivers/r300/r300_screen_buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c index 5424f260e978..a5ec8ef96566 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.c +++ b/src/gallium/drivers/r300/r300_screen_buffer.c @@ -196,6 +196,12 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen, return &rbuf->b.b.b; } +#ifdef PIPE_ARCH_BIG_ENDIAN + /* Force buffer placement to GTT on big endian machines, because + * the vertex fetcher can't swap bytes from VRAM. */ + rbuf->b.b.b.usage = PIPE_USAGE_STAGING; +#endif + rbuf->buf = r300screen->rws->buffer_create(r300screen->rws, rbuf->b.b.b.width0, alignment, |