summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/radeon/drm/radeon_drm.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-08-06 01:08:12 +0200
committerMarek Olšák <maraeo@gmail.com>2010-08-06 03:14:43 +0200
commit4d10ec4f18cfb6c386feb65805713584ff730652 (patch)
treedc620987052633f6615a6001f5afd9a2560c5f59 /src/gallium/winsys/radeon/drm/radeon_drm.c
parent1a3a04d56b01714e4fa19aa7efcdae4b6644af46 (diff)
r300g: do not emit GB_Z_PEQ_CONFIG on non-r500 if DRM < 2.6.0
Diffstat (limited to 'src/gallium/winsys/radeon/drm/radeon_drm.c')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm.c b/src/gallium/winsys/radeon/drm/radeon_drm.c
index 36048277003..ecaf096dea2 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm.c
@@ -103,6 +103,10 @@ static void do_ioctls(int fd, struct radeon_libdrm_winsys* winsys)
winsys->drm_2_3_0 = version->version_major > 2 ||
version->version_minor >= 3;
+ winsys->drm_2_6_0 = version->version_major > 2 ||
+ (version->version_major == 2 &&
+ version->version_minor >= 6);
+
info.request = RADEON_INFO_DEVICE_ID;
retval = drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, sizeof(info));
if (retval) {