diff options
author | Dave Airlie <[email protected]> | 2017-02-13 22:54:53 -0500 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-02-15 05:02:21 +1000 |
commit | 5e988ac61f38e8a4497b171c45cfe9521925e206 (patch) | |
tree | 0d882204d9702e049c9211ba4e813335f959667d /src/amd/vulkan | |
parent | 0f1a4220a693a02685bf227f8b9d932046f7d1d3 (diff) |
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 <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index cb137aadfc4..8dd9f650238 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -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, |