We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fefe45f commit 0e39068Copy full SHA for 0e39068
utils/intel_blit.h
@@ -22,6 +22,9 @@
22
23
#include "UniqueFd.h"
24
25
+/* Buffer is allocated on dGPU local memory if this flag is set */
26
+#define GRALLOC_USAGE_PRIVATE_2 (1ull << 30)
27
+
28
#define I915_TILING_4 9
29
30
struct intel_info {
@@ -49,6 +52,9 @@ int intel_create_buffer(struct intel_info *info,
49
52
uint64_t modifier, uint32_t *out_handle);
50
53
int intel_dgpu_fd();
51
54
bool virtio_gpu_allow_p2p(int virtgpu_fd);
55
+inline bool has_local_memory_flag(uint64_t usage) {
56
+ return (usage & GRALLOC_USAGE_PRIVATE_2) != 0;
57
+}
58
59
class IntelBlitter {
60
public:
0 commit comments