summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/panfrost/pan_resource.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2020-12-17 10:33:50 +0100
committerBoris Brezillon <boris.brezillon@collabora.com>2021-01-04 17:05:42 +0100
commitcbf68b21fb2b6baf4578c98dd7e91855aa6dfa62 (patch)
treeed1e381794ade043d7bafcb5291490f1a0090d0c /src/gallium/drivers/panfrost/pan_resource.h
parent9ab45f4a6351d32c39f5cf4888229eb078613f71 (diff)
downloadmesa-cbf68b21fb2b6baf4578c98dd7e91855aa6dfa62.tar.gz
panfrost: Move checksum_bo to panfrost_resource
There's no reason to have the checksum_bo at the slice level since there can only be one external CRC BO per resource. Move this field to the panfrost_resource struct. Suggested-by: Icecream95 Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8125>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_resource.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_resource.h b/src/gallium/drivers/panfrost/pan_resource.h
index 1de0051b90c..183af68b917 100644
--- a/src/gallium/drivers/panfrost/pan_resource.h
+++ b/src/gallium/drivers/panfrost/pan_resource.h
@@ -67,6 +67,9 @@ struct panfrost_resource {
/* Is transaciton elimination enabled? */
bool checksummed;
+ /* The CRC BO can be allocated separately */
+ struct panfrost_bo *checksum_bo;
+
/* Used to decide when to convert to another modifier */
uint16_t modifier_updates;