diff options
author | Rob Clark <[email protected]> | 2016-11-21 10:23:04 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-11-27 17:26:05 -0500 |
commit | 8cb965b112ad8a8465c4c5063b821a0210008d7d (patch) | |
tree | 56a5ad295fd5cbea62f49d4d54ef365b0a30e729 /src/gallium/drivers | |
parent | f4ffe2786bd5f0f5b894e4772a64ba78276ea2d2 (diff) |
freedreno: fix slice size for imported buffers
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 5a21ca44e30..f1acf64ee9a 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -909,6 +909,7 @@ fd_resource_from_handle(struct pipe_screen *pscreen, rsc->cpp = util_format_get_blocksize(tmpl->format); slice->pitch = handle->stride / rsc->cpp; slice->offset = handle->offset; + slice->size0 = handle->stride * prsc->height0; if ((slice->pitch < align(prsc->width0, 32)) || (slice->pitch % 32)) goto fail; |