mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
radv: align the initial state command buffer.
This just adds the padding to align this to an 8 dword boundary. Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
0f1a4220a6
commit
5e988ac61f
1 changed files with 7 additions and 0 deletions
|
|
@ -445,6 +445,13 @@ cik_create_gfx_config(struct radv_device *device)
|
|||
|
||||
si_emit_config(device->physical_device, cs);
|
||||
|
||||
while (cs->cdw & 7) {
|
||||
if (device->physical_device->rad_info.gfx_ib_pad_with_type2)
|
||||
radeon_emit(cs, 0x80000000);
|
||||
else
|
||||
radeon_emit(cs, 0xffff1000);
|
||||
}
|
||||
|
||||
device->gfx_init = device->ws->buffer_create(device->ws,
|
||||
cs->cdw * 4, 4096,
|
||||
RADEON_DOMAIN_GTT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue