diff options
author | Christoph Bumiller <[email protected]> | 2013-03-02 18:27:56 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-03-12 12:55:36 +0100 |
commit | 19ea0bd5217fc486dcd2de756872e1ce4e3064b7 (patch) | |
tree | 09d0b058dfbdd8b5972ee36cac521cc8be988ad3 /src/gallium/drivers | |
parent | 47f2179844bd21f8112367ef8ed0acead7160f10 (diff) |
nouveau: align PIPE_BIND_SHADER,COMPUTE_RESOURCEs to 256 bytes
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c index 0c3d43b4655..e3cbaf60a25 100644 --- a/src/gallium/drivers/nouveau/nouveau_buffer.c +++ b/src/gallium/drivers/nouveau/nouveau_buffer.c @@ -41,7 +41,9 @@ nouveau_buffer_allocate(struct nouveau_screen *screen, { uint32_t size = buf->base.width0; - if (buf->base.bind & PIPE_BIND_CONSTANT_BUFFER) + if (buf->base.bind & (PIPE_BIND_CONSTANT_BUFFER | + PIPE_BIND_COMPUTE_RESOURCE | + PIPE_BIND_SHADER_RESOURCE)) size = align(size, 0x100); if (domain == NOUVEAU_BO_VRAM) { |