Mesa (master): r600g: do not reset device to 0 when doing unrelated operations

Marek Olšák mareko at kemper.freedesktop.org
Sun Apr 24 16:22:35 PDT 2011


Module: Mesa
Branch: master
Commit: 512c81484978014fe43bb3bd3f2ce1aaaee05868
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=512c81484978014fe43bb3bd3f2ce1aaaee05868

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Apr 21 17:20:27 2011 +0200

r600g: do not reset device to 0 when doing unrelated operations

Seems to be a copy-paste bug.

---

 src/gallium/winsys/r600/drm/r600_drm.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c
index ddd8ee3..311324f 100644
--- a/src/gallium/winsys/r600/drm/r600_drm.c
+++ b/src/gallium/winsys/r600/drm/r600_drm.c
@@ -199,7 +199,6 @@ static int radeon_get_clock_crystal_freq(struct radeon *radeon)
 	uint32_t clock_crystal_freq;
 	int r;
 
-	radeon->device = 0;
 	info.request = RADEON_INFO_CLOCK_CRYSTAL_FREQ;
 	info.value = (uintptr_t)&clock_crystal_freq;
 	r = drmCommandWriteRead(radeon->fd, DRM_RADEON_INFO, &info,
@@ -218,7 +217,6 @@ static int radeon_get_num_backends(struct radeon *radeon)
 	uint32_t num_backends;
 	int r;
 
-	radeon->device = 0;
 	info.request = RADEON_INFO_NUM_BACKENDS;
 	info.value = (uintptr_t)&num_backends;
 	r = drmCommandWriteRead(radeon->fd, DRM_RADEON_INFO, &info,



More information about the mesa-commit mailing list