aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r--drivers/gpu/drm/radeon/r100.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index e59422320bb6..0ba4163ee0a4 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -2318,6 +2318,9 @@ void r100_vram_init_sizes(struct radeon_device *rdev)
2318 /* Fix for RN50, M6, M7 with 8/16/32(??) MBs of VRAM - 2318 /* Fix for RN50, M6, M7 with 8/16/32(??) MBs of VRAM -
2319 * Novell bug 204882 + along with lots of ubuntu ones 2319 * Novell bug 204882 + along with lots of ubuntu ones
2320 */ 2320 */
2321 if (rdev->mc.aper_size > config_aper_size)
2322 config_aper_size = rdev->mc.aper_size;
2323
2321 if (config_aper_size > rdev->mc.real_vram_size) 2324 if (config_aper_size > rdev->mc.real_vram_size)
2322 rdev->mc.mc_vram_size = config_aper_size; 2325 rdev->mc.mc_vram_size = config_aper_size;
2323 else 2326 else
@@ -3225,6 +3228,8 @@ static int r100_cs_track_texture_check(struct radeon_device *rdev,
3225 for (u = 0; u < track->num_texture; u++) { 3228 for (u = 0; u < track->num_texture; u++) {
3226 if (!track->textures[u].enabled) 3229 if (!track->textures[u].enabled)
3227 continue; 3230 continue;
3231 if (track->textures[u].lookup_disable)
3232 continue;
3228 robj = track->textures[u].robj; 3233 robj = track->textures[u].robj;
3229 if (robj == NULL) { 3234 if (robj == NULL) {
3230 DRM_ERROR("No texture bound to unit %u\n", u); 3235 DRM_ERROR("No texture bound to unit %u\n", u);
@@ -3459,6 +3464,7 @@ void r100_cs_track_clear(struct radeon_device *rdev, struct r100_cs_track *track
3459 track->textures[i].robj = NULL; 3464 track->textures[i].robj = NULL;
3460 /* CS IB emission code makes sure texture unit are disabled */ 3465 /* CS IB emission code makes sure texture unit are disabled */
3461 track->textures[i].enabled = false; 3466 track->textures[i].enabled = false;
3467 track->textures[i].lookup_disable = false;
3462 track->textures[i].roundup_w = true; 3468 track->textures[i].roundup_w = true;
3463 track->textures[i].roundup_h = true; 3469 track->textures[i].roundup_h = true;
3464 if (track->separate_cube) 3470 if (track->separate_cube)