#include "radv_radeon_winsys.h"
#include "sid.h"
+#define GFX6_MAX_CS_SIZE 0xffff8 /* in dwords */
+
enum { VIRTUAL_BUFFER_HASH_TABLE_SIZE = 1024 };
struct radv_amdgpu_cs {
}
if (!cs->ws->use_ib_bos) {
- const uint64_t limit_dws = 0xffff8;
+ const uint64_t limit_dws = GFX6_MAX_CS_SIZE;
uint64_t ib_dws = MAX2(cs->base.cdw + min_size, MIN2(cs->base.max_dw * 2, limit_dws));
/* The total ib size cannot exceed limit_dws dwords. */
size += preamble_cs->cdw;
size += rcs->cdw;
- assert(size < 0xffff8);
+ assert(size < GFX6_MAX_CS_SIZE);
while (!size || (size & 7)) {
size++;
size += preamble_cs->cdw;
while (i + cnt < cs_count &&
- 0xffff8 - size >= radv_amdgpu_cs(cs_array[i + cnt])->base.cdw) {
+ GFX6_MAX_CS_SIZE - size >= radv_amdgpu_cs(cs_array[i + cnt])->base.cdw) {
size += radv_amdgpu_cs(cs_array[i + cnt])->base.cdw;
++cnt;
}