nouveau: align PIPE_BIND_SHADER,COMPUTE_RESOURCEs to 256 bytes
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 2 Mar 2013 17:27:56 +0000 (18:27 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 12 Mar 2013 11:55:36 +0000 (12:55 +0100)
src/gallium/drivers/nouveau/nouveau_buffer.c

index 0c3d43b46559cdc74bd5774599eb3cf56d5eb6fc..e3cbaf60a25fbe3d11ea31c7384d3f094b9366c6 100644 (file)
@@ -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) {