mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
freedreno/ir3: fix old compiler after f6b2e8af74
If first_driver_param is left as zero (calloc'd struct), the result is c0 getting clobbered. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
34ff9bc669
commit
b709adf7cc
1 changed files with 1 additions and 0 deletions
|
|
@ -195,6 +195,7 @@ compile_init(struct ir3_compile_context *ctx, struct ir3_shader_variant *so,
|
|||
info->file_max[TGSI_FILE_INPUT] + 1 +
|
||||
info->file_max[TGSI_FILE_OUTPUT] + 1;
|
||||
|
||||
so->first_driver_param = ~0;
|
||||
so->first_immediate = ctx->base_reg[TGSI_FILE_IMMEDIATE];
|
||||
ctx->immediate_idx = 4 * (ctx->info.file_max[TGSI_FILE_IMMEDIATE] + 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue