summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-03-04 11:36:32 -0500
committerRob Clark <[email protected]>2015-03-04 11:37:58 -0500
commitb709adf7cca24412a6c1bb813856ca701e534ffd (patch)
tree38d0c6a12d37c3364dd545ae902679d149d12815 /src/gallium/drivers
parent34ff9bc6696f3bb84406850d9bc59dfda4bcf8d6 (diff)
freedreno/ir3: fix old compiler after f6b2e8af742
If first_driver_param is left as zero (calloc'd struct), the result is c0 getting clobbered. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_compiler_old.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_old.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_old.c
index 33531568508..44a629f283f 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_old.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_old.c
@@ -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);