diff options
author | Maciej Cencora <m.cencora@gmail.com> | 2009-03-23 20:48:50 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-03-29 04:31:35 -0400 |
commit | af7ae351ad63a137ece86740dbe3f181d09d810f (patch) | |
tree | 02029aee3f7c490fee81bcbc32119123e005ef54 /drivers/gpu/drm/radeon/r300_cmdbuf.c | |
parent | d008877550d8ca8c6878dd494e50c1b9209f38d4 (diff) |
drm/radeon: add regs required for occlusion queries support
[airlied: cleaned up slightly for drm-next]
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300_cmdbuf.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300_cmdbuf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r300_cmdbuf.c b/drivers/gpu/drm/radeon/r300_cmdbuf.c index 3efa633966e8..cb2e470f97d4 100644 --- a/drivers/gpu/drm/radeon/r300_cmdbuf.c +++ b/drivers/gpu/drm/radeon/r300_cmdbuf.c | |||
@@ -207,6 +207,10 @@ void r300_init_reg_flags(struct drm_device *dev) | |||
207 | ADD_RANGE(0x42C0, 2); | 207 | ADD_RANGE(0x42C0, 2); |
208 | ADD_RANGE(R300_RS_CNTL_0, 2); | 208 | ADD_RANGE(R300_RS_CNTL_0, 2); |
209 | 209 | ||
210 | ADD_RANGE(R300_SU_REG_DEST, 1); | ||
211 | if ((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_RV530) | ||
212 | ADD_RANGE(RV530_FG_ZBREG_DEST, 1); | ||
213 | |||
210 | ADD_RANGE(R300_SC_HYPERZ, 2); | 214 | ADD_RANGE(R300_SC_HYPERZ, 2); |
211 | ADD_RANGE(0x43E8, 1); | 215 | ADD_RANGE(0x43E8, 1); |
212 | 216 | ||
@@ -232,6 +236,7 @@ void r300_init_reg_flags(struct drm_device *dev) | |||
232 | ADD_RANGE(R300_ZB_DEPTHPITCH, 1); | 236 | ADD_RANGE(R300_ZB_DEPTHPITCH, 1); |
233 | ADD_RANGE(R300_ZB_DEPTHCLEARVALUE, 1); | 237 | ADD_RANGE(R300_ZB_DEPTHCLEARVALUE, 1); |
234 | ADD_RANGE(R300_ZB_ZMASK_OFFSET, 13); | 238 | ADD_RANGE(R300_ZB_ZMASK_OFFSET, 13); |
239 | ADD_RANGE(R300_ZB_ZPASS_DATA, 2); /* ZB_ZPASS_DATA, ZB_ZPASS_ADDR */ | ||
235 | 240 | ||
236 | ADD_RANGE(R300_TX_FILTER_0, 16); | 241 | ADD_RANGE(R300_TX_FILTER_0, 16); |
237 | ADD_RANGE(R300_TX_FILTER1_0, 16); | 242 | ADD_RANGE(R300_TX_FILTER1_0, 16); |