anv/state: Take explicit sample locations in emit helpers
authorEleni Maria Stea <estea@igalia.com>
Thu, 14 Mar 2019 23:20:12 +0000 (18:20 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 Jan 2021 23:25:27 +0000 (23:25 +0000)
commitcb082d826050240ff1abb0e04c0d1cf1a11dc738
treef74c641977dd43b0ba79335d6e9bd66fd5f511b3
parenta02891fdfd358d074a1efd81819a11949dc90140
anv/state: Take explicit sample locations in emit helpers

This commit adds a "locations" parameter to emit_multisample and
emit_sample_pattern which, if provided, will override the default
sample locations.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1887>
src/intel/common/gen_sample_positions.h
src/intel/vulkan/anv_genX.h
src/intel/vulkan/genX_pipeline.c
src/intel/vulkan/genX_state.c