diff options
author | Dave Airlie <[email protected]> | 2010-04-04 20:31:42 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-04-04 20:31:42 +1000 |
commit | d605b0db4d4318d2616fffc158e57732c416c5c3 (patch) | |
tree | 9907f124ebbd93d3f48ca409b641c8059b3fcbc0 /src/gallium/drivers/r300/r300_texture.c | |
parent | 655fe281556679669699052f37412a6243771619 (diff) |
r300g: fix TFP stride override.
We should use pitch for the overriden state, fixes one half of the tfp test.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 57f2766d2e0..d03c28ba350 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -521,7 +521,7 @@ static void r300_setup_texture_state(struct r300_screen* screen, struct r300_tex state->format0 = R300_TX_WIDTH((pt->width0 - 1) & 0x7ff) | R300_TX_HEIGHT((pt->height0 - 1) & 0x7ff); - if (tex->is_npot) { + if (tex->is_npot || tex->stride_override) { /* rectangles love this */ state->format0 |= R300_TX_PITCH_EN; state->format2 = (tex->pitch[0] - 1) & 0x1fff; |