diff options
author | Marek Olšák <[email protected]> | 2019-06-04 22:08:41 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-03 15:51:13 -0400 |
commit | 6944f991761367fc1cc3c1d490f284623955d791 (patch) | |
tree | 3e0f95a83d793947f557392d8410be031da9d530 /src/gallium/drivers/radeonsi/gfx10_shader_ngg.c | |
parent | 395185912d7766749d8a2fc66eb10b0bf3a2da16 (diff) |
radeonsi/gfx10: allocate GDS BOs for streamout
Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/gfx10_shader_ngg.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/gfx10_shader_ngg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/gfx10_shader_ngg.c b/src/gallium/drivers/radeonsi/gfx10_shader_ngg.c index 2e7b42e056d..777873fedd0 100644 --- a/src/gallium/drivers/radeonsi/gfx10_shader_ngg.c +++ b/src/gallium/drivers/radeonsi/gfx10_shader_ngg.c @@ -231,6 +231,8 @@ static void build_streamout(struct si_shader_context *ctx, unsigned scratch_offset_base = isgs ? 8 : 4; LLVMValueRef scratch_offset_basev = isgs ? i32_8 : i32_4; + ac_llvm_add_target_dep_function_attr(ctx->main_fn, "amdgpu-gds-size", 256); + /* Determine the mapping of streamout buffers to vertex streams. */ for (unsigned i = 0; i < so->num_outputs; ++i) { unsigned buf = so->output[i].output_buffer; |