radv/winsys: Fail early on overgrown cs.
authorGustaw Smolarczyk <wielkiegie@gmail.com>
Thu, 13 Oct 2016 20:54:12 +0000 (22:54 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 16 Oct 2016 10:38:53 +0000 (12:38 +0200)
commit36cb5508e891bd50308d3dffcf6f4a6fa73bbf2e
tree104aa892a224b1587b56ee6c725871c32cabf96c
parent493237d4eed9d4e89af6a3262c6481f7794142a1
radv/winsys: Fail early on overgrown cs.

When !use_ib_bos, we can't easily chain ibs one to another. If the
required cs size grows over 1Mi - 8 dwords just fail the cs so that we
won't assert-fail in radv_amdgpu_winsys_cs_submit later on.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c