panfrost: Add gem_handle to panfrost_memory and panfrost_bo

It will be used by the DRM backend to store GEM handles from the kernel.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Tomeu Vizoso 2019-03-08 10:27:06 +01:00 committed by Alyssa Rosenzweig
parent 941adcef03
commit d4dc79df72
2 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ struct panfrost_memory {
mali_ptr gpu;
int stack_bottom;
size_t size;
int gem_handle;
};
/* Slab entry sizes range from 2^min to 2^max. In this case, we range from 1k

View File

@ -69,6 +69,8 @@ struct panfrost_bo {
bool has_checksum;
struct panfrost_memory checksum_slab;
int checksum_stride;
int gem_handle;
};
struct panfrost_resource {