sna: Print detected GPU first
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Dec 2013 11:55:54 +0000 (11:55 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Dec 2013 11:58:02 +0000 (11:58 +0000)
This should make the GPU identification easier to find in future.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_driver.c

index 4a96faf..58037c0 100644 (file)
@@ -509,6 +509,10 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
                goto cleanup;
        }
 
+       intel_detect_chipset(scrn, pEnt);
+       xf86DrvMsg(scrn->scrnIndex, X_PROBED, "CPU: %s\n",
+                  sna_cpu_features_to_string(sna->cpu_features, buf));
+
        preferred_depth = sna->info->gen < 030 ? 15 : 24;
        if (!fb_supports_depth(fd, preferred_depth))
                preferred_depth = 24;
@@ -546,8 +550,6 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
 
        sna_setup_capabilities(scrn, fd);
 
-       intel_detect_chipset(scrn, pEnt);
-
        kgem_init(&sna->kgem, fd,
                  xf86GetPciInfoForEntity(pEnt->index),
                  sna->info->gen);
@@ -593,8 +595,6 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
        if (xf86ReturnOptValBool(sna->Options, OPTION_CRTC_PIXMAPS, FALSE))
                sna->flags |= SNA_FORCE_SHADOW;
 
-       xf86DrvMsg(scrn->scrnIndex, X_PROBED, "CPU: %s\n",
-                  sna_cpu_features_to_string(sna->cpu_features, buf));
        xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "Framebuffer %s\n",
                   sna->tiling & SNA_TILING_FB ? "tiled" : "linear");
        xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "Pixmaps %s\n",