radv/gfx10: implement support for GS as NGG

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Samuel Pitoiset
2019-07-11 08:44:16 +02:00
parent 7286865f6d
commit 5bbcb3f5bc
4 changed files with 568 additions and 6 deletions

View File

@@ -927,6 +927,11 @@ radv_shader_variant_create(struct radv_device *device,
sym->name = "esgs_ring";
sym->size = 32 * 1024;
sym->align = 64 * 1024;
/* Make sure to have LDS space for NGG scratch. */
/* TODO: Compute this correctly somehow? */
if (binary->variant_info.is_ngg)
sym->size -= 32;
}
struct ac_rtld_open_info open_info = {
.info = &device->physical_device->rad_info,