st/mesa: Add support for EXT_multisampled_render_to_texture
authorKristian H. Kristensen <hoegsberg@chromium.org>
Tue, 6 Nov 2018 05:22:44 +0000 (21:22 -0800)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Fri, 7 Dec 2018 00:55:46 +0000 (16:55 -0800)
commit14ea811c67357f319c9c72a608c2d555f7a3ec34
tree5897382a5304ea0d112ab5654ad07f70ec674bb3
parent2710c40e3c817e269fde6fd3bb2727e0ee8d3598
st/mesa: Add support for EXT_multisampled_render_to_texture

In gallium, we model the attachment sample count as a new nr_samples
field in pipe_surface. A driver can indicate support for the extension
using the new pipe cap, PIPE_CAP_MULTISAMPLED_RENDER_TO_TEXTURE.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_fbo.h
src/mesa/state_tracker/st_extensions.c