radv: Add flag for enabling binning.

Letting it be disabled by default.

Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Bas Nieuwenhuizen
2017-12-30 17:31:15 +01:00
parent a1afef8de0
commit b0d17270ad
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ enum {
RADV_PERFTEST_NO_BATCHCHAIN = 0x1,
RADV_PERFTEST_SISCHED = 0x2,
RADV_PERFTEST_LOCAL_BOS = 0x4,
RADV_PERFTEST_BINNING = 0x8,
};
bool
+8
View File
@@ -344,6 +344,7 @@ static const struct debug_control radv_perftest_options[] = {
{"nobatchchain", RADV_PERFTEST_NO_BATCHCHAIN},
{"sisched", RADV_PERFTEST_SISCHED},
{"localbos", RADV_PERFTEST_LOCAL_BOS},
{"binning", RADV_PERFTEST_BINNING},
{NULL, 0}
};
@@ -1080,6 +1081,13 @@ VkResult radv_CreateDevice(
}
}
device->pbb_allowed = device->physical_device->rad_info.chip_class >= GFX9 &&
(device->instance->perftest_flags & RADV_PERFTEST_BINNING);
/* Disabled and not implemented for now. */
device->dfsm_allowed = device->pbb_allowed && false;
#if HAVE_LLVM < 0x0400
device->llvm_supports_spill = false;
#else