mesa: allow internalformat_query with multisample texture targets
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 16 Feb 2013 07:47:11 +0000 (20:47 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 24 Mar 2013 03:38:18 +0000 (16:38 +1300)
commit86b83806007c65baea916a2ccf71ecbcc256ebba
tree6aef592f3e0fdef87756c9fe0b02e2a6dcc0790e
parent3cc2629b3b4bfc3b5c21a5932a3a2e590e60f98a
mesa: allow internalformat_query with multisample texture targets

Now that we support ARB_texture_multisample, there are multiple targets
accepted for this query, and they may have target-dependent limits, so
pass the target to the driverfunc.

For example, the sampling hardware may not be able to do general
texelFetch() for some format/sample count combination, but the driver
may still be able to implement a reasonable resolve operation, so it can
be supported for renderbuffers.

V2: - Don't break Gallium compile.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/main/dd.h
src/mesa/main/formatquery.c
src/mesa/state_tracker/st_format.c
src/mesa/state_tracker/st_format.h