From 9b39fb1b6127fecf2fbb41926caca2bbb559a1d0 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sat, 11 Sep 2010 20:18:25 +0200 Subject: [PATCH] nv50: fix size of outputs_written array --- src/gallium/drivers/nv50/nv50_tgsi_to_nc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c index 5994d1c27e9..978bba4d571 100644 --- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c +++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c @@ -125,7 +125,7 @@ struct bld_context { struct bld_value_stack pvs[BLD_MAX_PREDS][4]; /* TGSI_FILE_PREDICATE */ struct bld_value_stack ovs[PIPE_MAX_SHADER_OUTPUTS][4]; - uint32_t outputs_written[(PIPE_MAX_SHADER_OUTPUTS + 31) / 32]; + uint32_t outputs_written[(PIPE_MAX_SHADER_OUTPUTS + 7) / 8]; struct nv_value *frgcrd[4]; struct nv_value *sysval[4]; -- 2.30.2