intel: Don't complain when getparam fails due to a missing param.

This is an expected behavior when we're testing for the presence of
new kernel features.
This commit is contained in:
Eric Anholt 2011-03-09 12:54:14 -08:00
parent ea004a3aed
commit f6ca4a304b
1 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@
*
**************************************************************************/
#include <errno.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/framebuffer.h"
@ -302,7 +303,8 @@ intel_get_param(__DRIscreen *psp, int param, int *value)
ret = drmCommandWriteRead(psp->fd, DRM_I915_GETPARAM, &gp, sizeof(gp));
if (ret) {
_mesa_warning(NULL, "drm_i915_getparam: %d", ret);
if (ret != -EINVAL)
_mesa_warning(NULL, "drm_i915_getparam: %d", ret);
return GL_FALSE;
}