iris: Let blorp update the clear color for us.
[mesa.git] / src / gallium / drivers / iris / iris_blit.c
index 057abc888e2a7bc469fba2b638353ba12a34ccef..c1f76ea006cecc23bdc5a8f6415dec65e16ffe5b 100644 (file)
@@ -255,6 +255,12 @@ iris_blorp_surf_for_resource(struct iris_vtable *vtbl,
       };
       surf->clear_color =
          iris_resource_get_clear_color(res, NULL, NULL);
+      surf->clear_color_addr = (struct blorp_address) {
+         .buffer = res->aux.clear_color_bo,
+         .offset = res->aux.clear_color_offset,
+         .reloc_flags = 0,
+         .mocs = vtbl->mocs(res->aux.clear_color_bo),
+      };
    }
 
    // XXX: ASTC