summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-07-11 08:44:16 +0200
committerSamuel Pitoiset <[email protected]>2019-07-11 15:45:53 +0200
commit5bbcb3f5bc665b99aadb0e289eee646310e307fd (patch)
treea386efd5105ec05c7950bc473507a1bb6570eb98 /src/amd/vulkan/radv_shader.c
parent7286865f6de4c0f949c3301de2e3bebbedcada75 (diff)
radv/gfx10: implement support for GS as NGG
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r--src/amd/vulkan/radv_shader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 1987d439612..4ec4e88349d 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -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,