i965/formatquery: Respond queries SAMPLES and NUM_SAMPLE_COUNTS
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 24 Nov 2015 20:43:28 +0000 (21:43 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:05 +0000 (15:14 +0100)
commit82be7735f32776e76300de3602a72fc236b7261e
treebd3a290f90f2a7b73baadb91deb3583a3212569f
parent2dabff9068a86a070615df587e4e9327b1d1ca6e
i965/formatquery: Respond queries SAMPLES and NUM_SAMPLE_COUNTS

This effectively disables old QuerySamplesForFormat driver hook, since it is
never called by Mesa anymore.

v2: Call brw_query_samples_for_format() with a dummy buffer to calculate num
    samples, to avoid modifying the original buffer.

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