r600g: do not reset device to 0 when doing unrelated operations
authorMarek Olšák <maraeo@gmail.com>
Thu, 21 Apr 2011 15:20:27 +0000 (17:20 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 24 Apr 2011 23:20:40 +0000 (01:20 +0200)
Seems to be a copy-paste bug.

src/gallium/winsys/r600/drm/r600_drm.c

index ddd8ee3d6dde2dadafb3add7b976f215ee51f381..311324f4f7135c2c3c00cf9b239fdd134cbbb847 100644 (file)
@@ -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,