Subversion Repositories Kolibri OS

Rev

Rev 1268 | Rev 1403 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1268 Rev 1313
Line 829... Line 829...
829
		/* Try to put vram before or after AGP because we
829
		/* Try to put vram before or after AGP because we
830
		 * we want SYSTEM_APERTURE to cover both VRAM and
830
		 * we want SYSTEM_APERTURE to cover both VRAM and
831
		 * AGP so that GPU can catch out of VRAM/AGP access
831
		 * AGP so that GPU can catch out of VRAM/AGP access
832
		 */
832
		 */
833
		if (rdev->mc.gtt_location > rdev->mc.mc_vram_size) {
833
		if (rdev->mc.gtt_location > rdev->mc.mc_vram_size) {
834
			/* Enought place before */
834
			/* Enough place before */
835
			rdev->mc.vram_location = rdev->mc.gtt_location -
835
			rdev->mc.vram_location = rdev->mc.gtt_location -
836
							rdev->mc.mc_vram_size;
836
							rdev->mc.mc_vram_size;
837
		} else if (tmp > rdev->mc.mc_vram_size) {
837
		} else if (tmp > rdev->mc.mc_vram_size) {
838
			/* Enought place after */
838
			/* Enough place after */
839
			rdev->mc.vram_location = rdev->mc.gtt_location +
839
			rdev->mc.vram_location = rdev->mc.gtt_location +
840
							rdev->mc.gtt_size;
840
							rdev->mc.gtt_size;
841
		} else {
841
		} else {
842
			/* Try to setup VRAM then AGP might not
842
			/* Try to setup VRAM then AGP might not
843
			 * not work on some card
843
			 * not work on some card