diff options
author | Kristian H. Kristensen <[email protected]> | 2019-11-07 16:44:33 -0800 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2019-11-07 16:46:21 -0800 |
commit | 4a4fad7f40f13b47ff09d0f1dd43459ea18a327e (patch) | |
tree | b84ccc887bf56c241331900870037e38280706fc /src | |
parent | 3699a74a4323a8e0873a1be3e2f788786b813bf7 (diff) |
freedreno/ir3: Use regid() helper when setting up precolor regs
Signed-off-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/freedreno/ir3/ir3_compiler_nir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 3b0dc5a0c8c..b827a4bef6e 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -3440,8 +3440,8 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, * since the VS chains to TCS and doesn't get the sysvals redelivered. */ - ctx->tcs_header->regs[0]->num = 0; - ctx->primitive_id->regs[0]->num = 1; + ctx->tcs_header->regs[0]->num = regid(0, 0); + ctx->primitive_id->regs[0]->num = regid(0, 1); struct ir3_instruction *precolor[] = { ctx->tcs_header, ctx->primitive_id }; ret = ir3_ra(so, precolor, ARRAY_SIZE(precolor)); } else if (ctx->gs_header) { @@ -3450,8 +3450,8 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, * the sysvals redelivered. */ - ctx->gs_header->regs[0]->num = 0; - ctx->primitive_id->regs[0]->num = 1; + ctx->gs_header->regs[0]->num = regid(0, 0); + ctx->primitive_id->regs[0]->num = regid(0, 1); struct ir3_instruction *precolor[] = { ctx->gs_header, ctx->primitive_id }; ret = ir3_ra(so, precolor, ARRAY_SIZE(precolor)); } else if (so->num_sampler_prefetch) { |