mesa: provide default implementation of QuerySamplesForFormat
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 29 Mar 2013 03:22:09 +0000 (16:22 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 29 Mar 2013 07:54:36 +0000 (20:54 +1300)
commit4412f3bc13886751f91f265babd78bac28c7ba41
tree2b3c75d0ad7dec69b40d8313b2a4c89e0eaad1e0
parentee624ced364bfd2f896809874ef3a808a11c5ecf
mesa: provide default implementation of QuerySamplesForFormat

Previously at least i915 failed to provide an implementation, but
exposed ARB_internalformat_query anyway, leading to crashes when
QueryInternalformativ was called.

Default implementation just returns 1 for everything, so is suitable for
any driver which does not support multisampling.

V2: - Move from intel to core mesa.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/driverfuncs.c
src/mesa/main/formatquery.c
src/mesa/main/formatquery.h