tests: allocate cmd buf to correct size

the value is in dwords, so calloc the correct size.
macos/master
Dave Airlie 10 years ago
parent c6fd7d55ac
commit 60ee9c4457
  1. 2
      tests/testvirgl.c

@ -152,7 +152,7 @@ int testvirgl_init_ctx_cmdbuf(struct virgl_context *ctx)
return ENOMEM;
}
ctx->cbuf->buf = CALLOC(1, VIRGL_MAX_CMDBUF_DWORDS);
ctx->cbuf->buf = CALLOC(1, VIRGL_MAX_CMDBUF_DWORDS * 4);
if (!ctx->cbuf->buf) {
FREE(ctx->cbuf);
testvirgl_fini_single_ctx();

Loading…
Cancel
Save