summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_screen_texture.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-30 16:16:30 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-30 16:16:30 +0000
commitbb1cde755bce0ea29cc4c1a29ad3841e3b304309 (patch)
treed55ebe93b5fb22c97b9482622d182fdebd0d776c /src/gallium/drivers/i965/brw_screen_texture.c
parent6781f624af8b06061673f3fd6f19ffb6a56c3e8c (diff)
i965g: turn on texture tiling by default
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen_texture.c')
-rw-r--r--src/gallium/drivers/i965/brw_screen_texture.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_texture.c b/src/gallium/drivers/i965/brw_screen_texture.c
index 650cac240b..f4c20f31a5 100644
--- a/src/gallium/drivers/i965/brw_screen_texture.c
+++ b/src/gallium/drivers/i965/brw_screen_texture.c
@@ -209,14 +209,11 @@ static struct pipe_texture *brw_texture_create( struct pipe_screen *screen,
/* XXX: No tiling with compressed textures??
*/
- if (tex->compressed == 0
- /* && bscreen->use_texture_tiling */
- /* && bscreen->kernel_exec_fencing */)
+ if (tex->compressed == 0 &&
+ !bscreen->no_tiling)
{
- if (1)
- tex->tiling = BRW_TILING_NONE;
- else if (bscreen->chipset.is_965 &&
- pf_is_depth_or_stencil(templ->format))
+ if (bscreen->chipset.is_965 &&
+ pf_is_depth_or_stencil(templ->format))
tex->tiling = BRW_TILING_Y;
else
tex->tiling = BRW_TILING_X;