Commit 3df2f754 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Fix build on standalone

parent b6c3a627
......@@ -1746,6 +1746,7 @@ panfrost_create_surface(struct pipe_context *pipe,
{
struct pipe_surface *ps;
#ifdef HAVE_DRI3
ps = CALLOC_STRUCT(pipe_surface);
if (ps) {
pipe_reference_init(&ps->reference, 1);
......@@ -1770,6 +1771,8 @@ panfrost_create_surface(struct pipe_context *pipe,
assert(ps->u.buf.last_element < ps->width);
}
}
#endif
return ps;
}
......@@ -1777,9 +1780,11 @@ static void
panfrost_surface_destroy(struct pipe_context *pipe,
struct pipe_surface *surf)
{
#ifdef HAVE_DRI3
assert(surf->texture);
pipe_resource_reference(&surf->texture, NULL);
free(surf);
#endif
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment