From: Samuel Pitoiset Date: Fri, 5 Jul 2019 16:14:24 +0000 (+0200) Subject: radv/gfx10: do not declare streamout SGPRS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce3b5d4c170a730deac2024e489e01f50a2123f1;p=mesa.git radv/gfx10: do not declare streamout SGPRS Streamout is completely different on GFX10. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 84ab586caac..2bc61b18655 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -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 ||