diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 0dda0d86a69..c640cf6ad5b 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -373,14 +373,14 @@ vc4_resource_create(struct pipe_screen *pscreen, rsc->tiled = true; } + if (tmpl->target != PIPE_BUFFER) + rsc->vc4_format = get_resource_texture_format(prsc); + vc4_setup_slices(rsc); vc4_resource_bo_alloc(rsc); if (!rsc->bo) goto fail; - if (tmpl->target != PIPE_BUFFER) - rsc->vc4_format = get_resource_texture_format(prsc); - return prsc; fail: vc4_resource_destroy(pscreen, prsc); |