+static void r300_apply_hyperz_blacklist(struct r300_capabilities* caps)
+{
+ static const char *list[] = {
+ "X", /* the DDX or indirect rendering */
+ "Xorg", /* (alternative name) */
+ "check_gl_texture_size", /* compiz */
+ "Compiz",
+ "gnome-session-check-accelerated-helper",
+ "gnome-shell",
+ "kwin_opengl_test",
+ "kwin",
+ "firefox",
+ };
+ int i;
+ char proc_name[128];
+
+ if (!os_get_process_name(proc_name, sizeof(proc_name)))
+ return;
+
+ for (i = 0; i < ARRAY_SIZE(list); i++) {
+ if (strcmp(list[i], proc_name) == 0) {
+ caps->zmask_ram = 0;
+ caps->hiz_ram = 0;
+ break;
+ }
+ }
+}
+