radv/gfx10: do not declare streamout SGPRS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Jul 2019 16:14:24 +0000 (18:14 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 7 Jul 2019 15:51:32 +0000 (17:51 +0200)
Streamout is completely different on GFX10.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_nir_to_llvm.c

index 84ab586caacf41b8112c25c6a072142e5b25a174..2bc61b18655f852b25fa9f1f2af33ab456eb45e4 100644 (file)
@@ -837,6 +837,9 @@ declare_streamout_sgprs(struct radv_shader_context *ctx, gl_shader_stage stage,
 {
        int i;
 
+       if (ctx->ac.chip_class >= GFX10)
+               return;
+
        /* Streamout SGPRs. */
        if (ctx->shader_info->info.so.num_outputs) {
                assert(stage == MESA_SHADER_VERTEX ||