mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
b730960e77
commit
26ff7e373f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue