i965: Use force_compat_profile driconf option
[mesa.git] / src / mesa / drivers / dri / i965 / intel_copy_image.c
index 2ebd8d7528b2cea407c45c8318ab81bf2c594907..00593235d1e9f1de96cd86c79ebcf7de45d32543 100644 (file)
@@ -42,7 +42,9 @@ copy_miptrees(struct brw_context *brw,
               int dst_x, int dst_y, int dst_z, unsigned dst_level,
               int src_width, int src_height)
 {
-   if (brw->gen <= 5) {
+   const struct gen_device_info *devinfo = &brw->screen->devinfo;
+
+   if (devinfo->gen <= 5) {
       /* On gen4-5, try BLT first.
        *
        * Gen4-5 have a single ring for both 3D and BLT operations, so there's