From: Xavier Chantry Date: Sat, 11 Sep 2010 18:18:25 +0000 (+0200) Subject: nv50: fix size of outputs_written array X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b39fb1b6127fecf2fbb41926caca2bbb559a1d0;p=mesa.git nv50: fix size of outputs_written array --- 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];