diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-08-26 10:53:30 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-08-26 10:53:30 -0400 |
commit | 18e0fea55bbc41ce81397f22aa2c91e4feefee55 (patch) | |
tree | d1a88d15ddf56969d807c30423218b8b38633afb /src/mesa | |
parent | 53b3cdaee2654895dc90a25376ba29b64d166c54 (diff) | |
download | external_mesa3d-18e0fea55bbc41ce81397f22aa2c91e4feefee55.zip external_mesa3d-18e0fea55bbc41ce81397f22aa2c91e4feefee55.tar.gz external_mesa3d-18e0fea55bbc41ce81397f22aa2c91e4feefee55.tar.bz2 |
r300: r4xx and rs4xx also have lte discard regs
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_cmdbuf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c index 8765171..40e5e0b 100644 --- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c +++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c @@ -684,7 +684,10 @@ void r300InitCmdBuf(r300ContextPtr r300) r300->hw.rb3d_dither_ctl.cmd[0] = cmdpacket0(r300->radeon.radeonScreen, R300_RB3D_DITHER_CTL, 9); ALLOC_STATE(rb3d_aaresolve_ctl, always, 2, 0); r300->hw.rb3d_aaresolve_ctl.cmd[0] = cmdpacket0(r300->radeon.radeonScreen, R300_RB3D_AARESOLVE_CTL, 1); - if (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515) { + if ((r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515) || + (r300->radeon.radeonScreen->chip_family == CHIP_FAMILY_RS400) || + (r300->radeon.radeonScreen->chip_family == CHIP_FAMILY_RV410) || + (r300->radeon.radeonScreen->chip_family == CHIP_FAMILY_R420)) { ALLOC_STATE(rb3d_discard_src_pixel_lte_threshold, always, 3, 0); } else { ALLOC_STATE(rb3d_discard_src_pixel_lte_threshold, never, 3, 0); |