mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 20:50:29 +01:00
nouveau: align PIPE_BIND_SHADER,COMPUTE_RESOURCEs to 256 bytes
This commit is contained in:
parent
47f2179844
commit
19ea0bd521
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue