mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 11:58:10 +02:00
radeonsi: align shader binaries to CP DMA alignment for optimal prefetch
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
1a392a4377
commit
3a534c5c7d
1 changed files with 2 additions and 1 deletions
|
|
@ -5748,7 +5748,8 @@ int si_shader_binary_upload(struct si_screen *sscreen, struct si_shader *shader)
|
|||
r600_resource_reference(&shader->bo, NULL);
|
||||
shader->bo = (struct r600_resource*)
|
||||
pipe_buffer_create(&sscreen->b.b, 0,
|
||||
PIPE_USAGE_IMMUTABLE, bo_size);
|
||||
PIPE_USAGE_IMMUTABLE,
|
||||
align(bo_size, SI_CPDMA_ALIGNMENT));
|
||||
if (!shader->bo)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue