r420.c (e8cdfb0509f48d44d95d68d4f42d8d71a9ba4acd) | r420.c (d75ee3be44380040b9d2c7925298dc52e049768d) |
---|---|
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 --- 82 unchanged lines hidden (view full) --- 91 WREG32(R300_GA_ENHANCE, R300_GA_DEADLOCK_CNTL | R300_GA_FASTSYNC_CNTL | 92 (1 << 2) | (1 << 3)); 93 /* add idle wait as per freedesktop.org bug 24041 */ 94 if (r100_gui_wait_for_idle(rdev)) { 95 printk(KERN_WARNING "Failed to wait GUI idle while " 96 "programming pipes. Bad things might happen.\n"); 97 } 98 /* get max number of pipes */ | 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 --- 82 unchanged lines hidden (view full) --- 91 WREG32(R300_GA_ENHANCE, R300_GA_DEADLOCK_CNTL | R300_GA_FASTSYNC_CNTL | 92 (1 << 2) | (1 << 3)); 93 /* add idle wait as per freedesktop.org bug 24041 */ 94 if (r100_gui_wait_for_idle(rdev)) { 95 printk(KERN_WARNING "Failed to wait GUI idle while " 96 "programming pipes. Bad things might happen.\n"); 97 } 98 /* get max number of pipes */ |
99 gb_pipe_select = RREG32(0x402C); | 99 gb_pipe_select = RREG32(R400_GB_PIPE_SELECT); |
100 num_pipes = ((gb_pipe_select >> 12) & 3) + 1; 101 102 /* SE chips have 1 pipe */ 103 if ((rdev->pdev->device == 0x5e4c) || 104 (rdev->pdev->device == 0x5e4f)) 105 num_pipes = 1; 106 107 rdev->num_gb_pipes = num_pipes; --- 361 unchanged lines hidden --- | 100 num_pipes = ((gb_pipe_select >> 12) & 3) + 1; 101 102 /* SE chips have 1 pipe */ 103 if ((rdev->pdev->device == 0x5e4c) || 104 (rdev->pdev->device == 0x5e4f)) 105 num_pipes = 1; 106 107 rdev->num_gb_pipes = num_pipes; --- 361 unchanged lines hidden --- |