panfrost: Add gem_handle to panfrost_memory and panfrost_bo
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 8 Mar 2019 09:27:06 +0000 (10:27 +0100)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 10 Mar 2019 18:56:56 +0000 (18:56 +0000)
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>
src/gallium/drivers/panfrost/pan_allocate.h
src/gallium/drivers/panfrost/pan_resource.h

index 2084a339552141941159faa79535db5b1533a40a..5bbb1e4b078d30ab4f2597538eb6a9ef6656007e 100644 (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
index b0b5cc15a0c5766b3e0828d05532a75b89a6d5b4..633f185ab5b918ef3b9f47ccbcb594dc9e56d570 100644 (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 {