vc4: Zero-initialize the hardware sampler view structure.

Fixes failure to initialize the force_first_level flag, causing
failures in piglit levelclamp.
This commit is contained in:
Eric Anholt 2016-07-26 15:32:11 -07:00
parent b730960e77
commit 26ff7e373f

View file

@ -586,7 +586,7 @@ static struct pipe_sampler_view *
vc4_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc,
const struct pipe_sampler_view *cso)
{
struct vc4_sampler_view *so = malloc(sizeof(*so));
struct vc4_sampler_view *so = CALLOC_STRUCT(vc4_sampler_view);
struct vc4_resource *rsc = vc4_resource(prsc);
if (!so)