summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-03-23 09:54:52 +1000
committerDave Airlie <[email protected]>2015-03-23 09:55:33 +1000
commit484f9f4fcd53fcaa768e63934a5f74346bfb46a9 (patch)
tree461fe54ed2fff8b7b62d41120695a7f11201ad81 /src/mesa
parent397b491173f0d2df4deb44d21c170bf16840d507 (diff)
i965: define I915_PARAM_REVISION
we are broken against the libdrm 2.4.60 minimum specified, so fix it for now. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 0d3af2cfb3d..a39443aa6e4 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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)
{