diff options
author | Eric Anholt <[email protected]> | 2014-08-02 20:19:38 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-11 14:45:31 -0700 |
commit | ff4748491b27a0b52564e48788b70cd617ed0ff2 (patch) | |
tree | 00e03ab808151a143de38ca600f6b5e33c4ffd7c /src/gallium/drivers/vc4/vc4_resource.c | |
parent | 0bc2aed90fdfcedad501f769cbd2ae61b5a0ecb8 (diff) |
vc4: Store the (currently always linear) tiling format in the resource.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 3b1abd11152..3dad566a002 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -181,6 +181,7 @@ vc4_resource_create(struct pipe_screen *pscreen, vc4_setup_slices(rsc); + rsc->tiling = VC4_TILING_FORMAT_LINEAR; rsc->bo = vc4_bo_alloc(vc4_screen(pscreen), rsc->slices[0].offset + rsc->slices[0].size0 * prsc->depth0, @@ -206,6 +207,7 @@ vc4_resource_from_handle(struct pipe_screen *pscreen, if (!rsc) return NULL; + rsc->tiling = VC4_TILING_FORMAT_LINEAR; rsc->bo = vc4_screen_bo_from_handle(pscreen, handle, &slice->stride); if (!rsc->bo) goto fail; |