summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_extensions.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-07-29 13:07:49 -0700
committerEric Anholt <[email protected]>2009-10-01 14:54:15 -0700
commit81aa5d717bd0098608e9cc292b316293800c7e11 (patch)
treee1277afd4108a83d4857f924c1e9ccf1b7feefca /src/mesa/drivers/dri/intel/intel_extensions.c
parent862a2a55b35d1dec9224b025a6e7a0cf8593a6a7 (diff)
i915: Add stub ARB_occlusion_query support under a driconf debug option.
This is useful for enabling our GLSL testcases using the 2.0 entrypoints even though we don't have full GL 2.0.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_extensions.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_extensions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 6831cbbfc85..2eb08a8f057 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -171,6 +171,7 @@ static const struct dri_extension brw_extensions[] = {
static const struct dri_extension arb_oq_extensions[] = {
+ { "GL_ARB_occlusion_query", GL_ARB_occlusion_query_functions },
{ NULL, NULL }
};
@@ -214,5 +215,9 @@ intelInitExtensions(GLcontext *ctx, GLboolean enable_imaging)
if (intel == NULL || driQueryOptionb(&intel->optionCache, "fragment_shader"))
driInitExtensions(ctx, fragment_shader_extensions, GL_FALSE);
+
+ if (intel == NULL || driQueryOptionb(&intel->optionCache,
+ "stub_occlusion_query"))
+ driInitExtensions(ctx, arb_oq_extensions, GL_FALSE);
}
}