r300g: fix macrotiling on R350
authorMarek Olšák <maraeo@gmail.com>
Sat, 25 Sep 2010 12:57:32 +0000 (14:57 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 26 Sep 2010 20:38:52 +0000 (22:38 +0200)
MACRO_SWITCH on R350 appears to use the RV350 mode by default. Who knew?

NOTE: This is a candidate for the 7.9 branch.

src/gallium/drivers/r300/r300_texture_desc.c

index 20d1fdab4263447a401d7bcd0c9a59bc30badf2c..6a1030f8eee1b6970041d09ff0fa2982011bc350 100644 (file)
@@ -256,7 +256,7 @@ static void r300_setup_miptree(struct r300_screen *screen,
 {
     struct pipe_resource *base = &desc->b.b;
     unsigned stride, size, layer_size, nblocksy, i;
-    boolean rv350_mode = screen->caps.is_rv350;
+    boolean rv350_mode = screen->caps.family >= CHIP_FAMILY_R350;
     boolean aligned_for_cbzb;
 
     desc->size_in_bytes = 0;
@@ -351,7 +351,7 @@ static void r300_setup_tiling(struct r300_screen *screen,
 {
     struct r300_winsys_screen *rws = screen->rws;
     enum pipe_format format = desc->b.b.format;
-    boolean rv350_mode = screen->caps.is_rv350;
+    boolean rv350_mode = screen->caps.family >= CHIP_FAMILY_R350;
     boolean is_zb = util_format_is_depth_or_stencil(format);
     boolean dbg_no_tiling = SCREEN_DBG_ON(screen, DBG_NO_TILING);