[Mesa-dev] [PATCH v2 72/73] radeonsi: VS as ES/LS are not yet supported with R600_DEBUG=nir
Nicolai Hähnle
nhaehnle at gmail.com
Wed Jul 5 10:48:56 UTC 2017
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 7fa76cd..83db876 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -4304,22 +4304,24 @@ static void create_function(struct si_shader_context *ctx)
}
LLVMTypeRef v3i32 = LLVMVectorType(ctx->i32, 3);
switch (type) {
case PIPE_SHADER_VERTEX:
declare_default_desc_pointers(ctx, &fninfo);
declare_vs_specific_input_sgprs(ctx, &fninfo);
if (shader->key.as_es) {
+ assert(!shader->selector->nir);
ctx->param_es2gs_offset = add_arg(&fninfo, ARG_SGPR, ctx->i32);
} else if (shader->key.as_ls) {
+ assert(!shader->selector->nir);
/* no extra parameters */
} else {
if (shader->is_gs_copy_shader) {
fninfo.num_params = ctx->param_rw_buffers + 1;
fninfo.num_sgpr_params = fninfo.num_params;
}
/* The locations of the other parameters are assigned dynamically. */
declare_streamout_params(ctx, &shader->selector->so,
&fninfo);
--
2.9.3
More information about the mesa-dev
mailing list