summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_texture.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-18 02:32:54 +0200
committerMarek Olšák <[email protected]>2010-04-18 02:56:09 +0200
commit5b609badf7682da2377c5e67ab827b2dc3a06b9b (patch)
tree395664ce5cd2465cff64b72a9e3c6396ce6f815b /src/gallium/drivers/r300/r300_texture.c
parent4185d9770f1e08f190a57547ca47a231b9c0d6d7 (diff)
r300g: add debugging options "notiling" and "noimmd" (for testing)
notiling = Disable texture tiling noimmd = Disable immediate mode (this optimization was really worth it!)
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index a37b33edf29..0c3502ff936 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -836,13 +836,14 @@ static void r300_setup_tiling(struct pipe_screen *screen,
enum pipe_format format = tex->b.b.format;
boolean rv350_mode = r300_screen(screen)->caps.family >= CHIP_FAMILY_RV350;
boolean is_zb = util_format_is_depth_or_stencil(format);
+ boolean dbg_no_tiling = SCREEN_DBG_ON(r300_screen(screen), DBG_NO_TILING);
if (!r300_format_is_plain(format)) {
return;
}
/* If height == 1, disable microtiling except for zbuffer. */
- if (!is_zb && tex->b.b.height0 == 1) {
+ if (!is_zb && (tex->b.b.height0 == 1 || dbg_no_tiling)) {
return;
}
@@ -861,6 +862,10 @@ static void r300_setup_tiling(struct pipe_screen *screen,
break;
}
+ if (dbg_no_tiling) {
+ return;
+ }
+
/* Set macrotiling. */
if (r300_texture_macro_switch(tex, 0, rv350_mode, TILE_WIDTH) &&
r300_texture_macro_switch(tex, 0, rv350_mode, TILE_HEIGHT)) {