i965: define I915_PARAM_REVISION
authorDave Airlie <airlied@redhat.com>
Sun, 22 Mar 2015 23:54:52 +0000 (09:54 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 22 Mar 2015 23:55:33 +0000 (09:55 +1000)
we are broken against the libdrm 2.4.60 minimum specified,
so fix it for now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_context.c

index 0d3af2cfb3d4e9e79d43bf03bddcf46fa3699307..a39443aa6e468efd3354cb3eeddfaf29f56af088 100644 (file)
@@ -658,6 +658,11 @@ brw_process_driconf_options(struct brw_context *brw)
       driQueryOptionb(options, "allow_glsl_extension_directive_midshader");
 }
 
+/* drop when libdrm 2.4.61 is released */
+#ifndef I915_PARAM_REVISION
+#define I915_PARAM_REVISION 32
+#endif
+
 static int
 brw_get_revision(int fd)
 {