On 03/28/2013 12:26 AM, Chris Forbes wrote:
We claim to support ARB_internalformat_query on everything, but only
i965+ bothered to provide the hook -- so QueryInternalformativ() would
just explode (fail the assert in debug; segfault otherwise) on earlier
platforms.
Signed-off-by: Chris Forbes <[email protected]>
---
src/mesa/drivers/dri/intel/intel_context.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/mesa/drivers/dri/intel/intel_context.c
b/src/mesa/drivers/dri/intel/intel_context.c
index bf4045e..c0574c0 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -557,6 +557,18 @@ intelFinish(struct gl_context * ctx)
drm_intel_bo_wait_rendering(intel->batch.last_bo);
}
+static size_t
+intel_query_samples_for_format(struct gl_context *ctx, GLenum target,
+ GLenum internalFormat, int samples[16])
+{
+ (void) target;
+ (void) internalFormat;
+ (void) ctx;
+
+ samples[0] = 1;
+ return 1;
+}
+
void
intelInitDriverFunctions(struct dd_function_table *functions)
{
@@ -576,6 +588,8 @@ intelInitDriverFunctions(struct dd_function_table
*functions)
intelInitPixelFuncs(functions);
intelInitBufferObjectFuncs(functions);
intel_init_syncobj_functions(functions);
+
+ functions->QuerySamplesForFormat = intel_query_samples_for_format;
}
static bool
Shouldn't this live in Core Mesa? Presumably the other class drivers
(radeon, r200, nouveau_vieux, and maybe swrast?) are broken in the same
way...
--Ken
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev