From 979ec2cf754b28640c1c03a5cae8cc3a5febf33e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Thu, 3 Nov 2016 11:36:47 +0200 Subject: [PATCH] i965: use rzalloc instead of calloc in brwNewProgram MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit commit cc6aa1d161280f10ded7834d1ec2413bc97589fe changed to using rzalloc for gl_program creation but one instance for program creation was still using calloc. Signed-off-by: Tapani Pälli Reviewed-by: Juan A. Suarez Reviewed-by: Iago Toral Quiroga Reviewed-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 647f138f0a3..ffe4c277776 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -152,7 +152,7 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx, rzalloc(NULL, struct gen4_fragment_program); prog = &g4_prog->base; } else { - prog = CALLOC_STRUCT(brw_program); + prog = rzalloc(NULL, struct brw_program); } if (prog) { -- 2.30.2