st/mesa: add support for ARB_texture_multisample (v3)
authorDave Airlie <airlied@redhat.com>
Sun, 3 Mar 2013 20:17:11 +0000 (06:17 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Apr 2013 20:09:29 +0000 (21:09 +0100)
commitf152da6bf990c330108da25972f28e08b2f233aa
tree2f4facdaca58bacf07360f82d45bcd0aa8fe47ec
parent1d90ee5ef500e604267439557f99d94b49d7fbb6
st/mesa: add support for ARB_texture_multisample (v3)

This adds support to the mesa state tracker for ARB_texture_multisample.

hardware doesn't seem to use a different texture instructions, so
I don't think we need to create one for TGSI at this time.

Thanks to Marek for fixes to sample number picking.

v2: idr pointed out a bug in how we picked the max sample counts,
use new internal format chooser interface to pick proper answers.
v3: use st_choose_format directly, it was okay, fix anding of masks.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
12 files changed:
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_atom_msaa.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h