summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_resource.h
diff options
context:
space:
mode:
authorDaniel Stone <[email protected]>2019-03-18 16:07:00 +0000
committerAlyssa Rosenzweig <[email protected]>2019-03-20 04:20:42 +0000
commitd258b787faaf9b089acd740df26bddbb64c2c630 (patch)
tree01d44535da59fa41c2a87b61905380f02c8e5e9d /src/gallium/drivers/panfrost/pan_resource.h
parent2be60e0c73ed1555a919c5725cc0cab119a2b6de (diff)
panfrost: Properly align stride
Handle buffers whose width is not aligned to 16px by padding the stride and storing it accordingly. This does not reject imports for images whose stride is not sufficiently aligned. v2: make sure bo->stride is set on imported buffers, and add missing variable definition. (Tomeu) Tested-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_resource.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_resource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_resource.h b/src/gallium/drivers/panfrost/pan_resource.h
index 2e3d72babe6..4b5b9c49c07 100644
--- a/src/gallium/drivers/panfrost/pan_resource.h
+++ b/src/gallium/drivers/panfrost/pan_resource.h
@@ -81,6 +81,7 @@ struct panfrost_bo {
int checksum_stride;
int gem_handle;
+ unsigned int stride;
};
struct panfrost_resource {