v3d: Emit the VCM_CACHE_SIZE packet.
[mesa.git] / src / gallium / drivers / v3d / v3d_screen.c
index 26c41544322e84c046309685388024f9865f3cff..28334aeba4ccb14f4934c6e4d2a4455b0bbbcf13 100644 (file)
@@ -585,6 +585,8 @@ v3d_get_device_info(struct v3d_screen *screen)
         uint32_t minor = (ident1.value >> 0) & 0xf;
         screen->devinfo.ver = major * 10 + minor;
 
+        screen->devinfo.vpm_size = (ident1.value >> 28 & 0xf) * 1024;
+
         switch (screen->devinfo.ver) {
         case 33:
         case 41: