r300g: emit US_FORMAT on R520 only
authorMarek Olšák <maraeo@gmail.com>
Fri, 8 Apr 2011 18:05:33 +0000 (20:05 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 8 Apr 2011 18:07:01 +0000 (20:07 +0200)
src/gallium/drivers/r300/r300_chipset.c
src/gallium/drivers/r300/r300_chipset.h

index 1068d357c9442136678f26f6b89de77fd5f315e5..4949703120d42a86e286282b183292b17fe329b3 100644 (file)
@@ -419,5 +419,5 @@ void r300_parse_chipset(struct r300_capabilities* caps)
     caps->is_rv350 = caps->family >= CHIP_FAMILY_RV350;
     caps->z_compress = caps->is_rv350 ? R300_ZCOMP_8X8 : R300_ZCOMP_4X4;
     caps->dxtc_swizzle = caps->is_r400 || caps->is_r500;
-    caps->has_us_format = caps->is_r500;
+    caps->has_us_format = caps->family == CHIP_FAMILY_R520;
 }
index 3777f0cfae3acffed051af64bc6dea45aa0e9700..d0050bed2e8fa92f700fad390d6efd1decf14f95 100644 (file)
@@ -90,7 +90,7 @@ struct r300_capabilities {
     boolean high_second_pipe;
     /* DXTC texture swizzling. */
     boolean dxtc_swizzle;
-    /* Whether R500_US_FORMAT0_0 is supported (depends on DRM). */
+    /* Whether R500_US_FORMAT0_0 exists (R520-only and depends on DRM). */
     boolean has_us_format;
 };