gallium: Add new PIPE_CAP_SURFACE_SAMPLE_COUNT
authorKristian H. Kristensen <hoegsberg@chromium.org>
Tue, 6 Nov 2018 21:08:32 +0000 (13:08 -0800)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Fri, 7 Dec 2018 00:55:43 +0000 (16:55 -0800)
commit2710c40e3c817e269fde6fd3bb2727e0ee8d3598
tree966eff674ac450c8486e82e26e08c53f0fb86635
parent1b331ae505e63033634d9f5267ca1949336f75d8
gallium: Add new PIPE_CAP_SURFACE_SAMPLE_COUNT

This new pipe cap and the new nr_samples field in pipe_surface lets a
state tracker bind a render target with a different sample count than
the resource. This allows for implementing
EXT_multisampled_render_to_texture and
EXT_multisampled_render_to_texture2.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/gallium/auxiliary/util/u_framebuffer.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_state.h