summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorAndres Rodriguez <[email protected]>2017-07-12 18:45:23 -0400
committerTimothy Arceri <[email protected]>2017-08-06 12:42:06 +1000
commit95cb7760493f92410faaf2214d5abe4b5fdaf308 (patch)
tree0175a9fb8cdd60d9680a99eab2678c6b9ad44740 /src/gallium/include/pipe
parente064d660205a04e7d9c63fdceebf3c293a6872ed (diff)
gallium: introduce device/driver UUID queries
v2: remove unnecessary returns v3 (Timothy Arceri): updated trace v4 (Timothy Arceri): actually dump the params in trace Signed-off-by: Andres Rodriguez <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (v2) Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_defines.h1
-rw-r--r--src/gallium/include/pipe/p_screen.h13
2 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 321b677ade7..8609aefb986 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -1064,6 +1064,7 @@ enum pipe_debug_type
PIPE_DEBUG_TYPE_CONFORMANCE,
};
+#define PIPE_UUID_SIZE 16
#ifdef __cplusplus
}
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h
index 462b683cd75..8c6028a0fca 100644
--- a/src/gallium/include/pipe/p_screen.h
+++ b/src/gallium/include/pipe/p_screen.h
@@ -394,6 +394,19 @@ struct pipe_screen {
struct pipe_memory_object *memobj,
uint64_t offset);
+ /**
+ * Fill @uuid with a unique driver identifier
+ *
+ * \param uuid pointer to a memory region of PIPE_UUID_SIZE bytes
+ */
+ void (*get_driver_uuid)(struct pipe_screen *screen, char *uuid);
+
+ /**
+ * Fill @uuid with a unique device identifier
+ *
+ * \param uuid pointer to a memory region of PIPE_UUID_SIZE bytes
+ */
+ void (*get_device_uuid)(struct pipe_screen *screen, char *uuid);
};