v3d/tex: only look up the 2nd texture gather offset for 1d non-arrays
[mesa.git] / src / broadcom / common / v3d_device_info.h
index b0a2a02154cd8b04c4059e9f48fc016eb4e26380..97abd9b8d9fc0e705c147bc474f36bc5397b4894 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef V3D_CHIP_H
 #define V3D_CHIP_H
 
+#include <stdbool.h>
 #include <stdint.h>
 
 /**
@@ -35,6 +36,14 @@ struct v3d_device_info {
 
         /** Size of the VPM, in bytes. */
         int vpm_size;
+
+        /* NSLC * QUPS from the core's IDENT registers. */
+        int qpu_count;
 };
 
+typedef int (*v3d_ioctl_fun)(int fd, unsigned long request, void *arg);
+
+bool
+v3d_get_device_info(int fd, struct v3d_device_info* devinfo, v3d_ioctl_fun fun);
+
 #endif