r420.c (08229de4b42816079ed5d15f0689fcd0af946d5e) | r420.c (f779b3e513478218cbaaaa0a506d7801cab6fd14) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 151 unchanged lines hidden (view full) --- 160 RREG32(R300_RB2D_DSTCACHE_MODE) | 161 R300_DC_AUTOFLUSH_ENABLE | 162 R300_DC_DC_DISABLE_IGNORE_PE); 163 164 if (r100_gui_wait_for_idle(rdev)) { 165 printk(KERN_WARNING "Failed to wait GUI idle while " 166 "programming pipes. Bad things might happen.\n"); 167 } | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 151 unchanged lines hidden (view full) --- 160 RREG32(R300_RB2D_DSTCACHE_MODE) | 161 R300_DC_AUTOFLUSH_ENABLE | 162 R300_DC_DC_DISABLE_IGNORE_PE); 163 164 if (r100_gui_wait_for_idle(rdev)) { 165 printk(KERN_WARNING "Failed to wait GUI idle while " 166 "programming pipes. Bad things might happen.\n"); 167 } |
168 DRM_INFO("radeon: %d pipes initialized.\n", rdev->num_gb_pipes); | 168 169 if (rdev->family == CHIP_RV530) { 170 tmp = RREG32(RV530_GB_PIPE_SELECT2); 171 if ((tmp & 3) == 3) 172 rdev->num_z_pipes = 2; 173 else 174 rdev->num_z_pipes = 1; 175 } else 176 rdev->num_z_pipes = 1; 177 178 DRM_INFO("radeon: %d quad pipes, %d z pipes initialized.\n", 179 rdev->num_gb_pipes, rdev->num_z_pipes); |
169} 170 171void r420_gpu_init(struct radeon_device *rdev) 172{ 173 r100_hdp_reset(rdev); 174 r420_pipes_init(rdev); 175 if (r300_mc_wait_for_idle(rdev)) { 176 printk(KERN_WARNING "Failed to wait MC idle while " --- 47 unchanged lines hidden --- | 180} 181 182void r420_gpu_init(struct radeon_device *rdev) 183{ 184 r100_hdp_reset(rdev); 185 r420_pipes_init(rdev); 186 if (r300_mc_wait_for_idle(rdev)) { 187 printk(KERN_WARNING "Failed to wait MC idle while " --- 47 unchanged lines hidden --- |