i965: use rzalloc instead of calloc in brwNewProgram
authorTapani Pälli <tapani.palli@intel.com>
Thu, 3 Nov 2016 09:36:47 +0000 (11:36 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 3 Nov 2016 10:09:40 +0000 (12:09 +0200)
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 <tapani.palli@intel.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/mesa/drivers/dri/i965/brw_program.c

index 647f138f0a39245ba2fd0540243cb9d7abfa002b..ffe4c277776a5843d8c4d39d8502008623d0d2e0 100644 (file)
@@ -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) {