diff options
author | Marek Olšák <[email protected]> | 2019-08-01 14:21:41 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-12 14:52:17 -0400 |
commit | 5167ca27fa3ad9534d24fef76a13c6513b00ebdb (patch) | |
tree | 8a0eec1f49a4a4021524039c36d5f8db6dc53293 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | f8d4198998e770317b3647d36729638339aa5cd1 (diff) |
gallium: add TGSI_SEMANTIC_DEFAULT_OUTER/INNER_LEVEL
for radeonsi NIR support.
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 032b6c24965..69466361d41 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2116,8 +2116,8 @@ void si_load_system_value(struct si_shader_context *ctx, value = load_tess_level(ctx, decl->Semantic.Name); break; - case TGSI_SEMANTIC_DEFAULT_TESSOUTER_SI: - case TGSI_SEMANTIC_DEFAULT_TESSINNER_SI: + case TGSI_SEMANTIC_TESS_DEFAULT_OUTER_LEVEL: + case TGSI_SEMANTIC_TESS_DEFAULT_INNER_LEVEL: { LLVMValueRef buf, slot, val[4]; int i, offset; @@ -2125,7 +2125,7 @@ void si_load_system_value(struct si_shader_context *ctx, slot = LLVMConstInt(ctx->i32, SI_HS_CONST_DEFAULT_TESS_LEVELS, 0); buf = LLVMGetParam(ctx->main_fn, ctx->param_rw_buffers); buf = ac_build_load_to_sgpr(&ctx->ac, buf, slot); - offset = decl->Semantic.Name == TGSI_SEMANTIC_DEFAULT_TESSINNER_SI ? 4 : 0; + offset = decl->Semantic.Name == TGSI_SEMANTIC_TESS_DEFAULT_INNER_LEVEL ? 4 : 0; for (i = 0; i < 4; i++) val[i] = buffer_load_const(ctx, buf, |