summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-24 23:05:40 +0200
committerMarek Olšák <[email protected]>2010-07-25 10:25:21 +0200
commit49330fc5ac13e25cb201e62995329cffaf5046f0 (patch)
treee5cf700875018050f378a75cacc8b79cb3ae6e3e /src/gallium/drivers/r300/r300_state.c
parentc92d232061c1aef6f5f56cbd815625778db2fd8c (diff)
r300g: do not use TXPITCH_EN if the width is POT and the height is NPOT
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 6e2a6ca0e42..bbea7e1589e 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1296,7 +1296,7 @@ static void r300_set_fragment_sampler_views(struct pipe_context* pipe,
/* Set the texrect factor in the fragment shader.
* Needed for RECT and NPOT fallback. */
texture = r300_texture(views[i]->texture);
- if (texture->desc.uses_stride_addressing) {
+ if (texture->desc.is_npot) {
r300->fs_rc_constant_state.dirty = TRUE;
}