intel/common: store sample position in plain arrays
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 5 Nov 2020 07:58:21 +0000 (09:58 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 Jan 2021 23:25:27 +0000 (23:25 +0000)
commit43acc10bd087ae1f8feacaa1814fc6921995aad2
tree78164b2cbf3118cc9a61e6c5a5ec7b77e73dc9e2
parentcb082d826050240ff1abb0e04c0d1cf1a11dc738
intel/common: store sample position in plain arrays

Allows to extract the values in different ways than just the genxml
format.

v2 (Jason Ekstrand):
 - Add a struct gen_sample_location so that we can re-use the array
   macros from the earlier commit.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1887>
src/intel/Makefile.sources
src/intel/common/gen_sample_positions.c [new file with mode: 0644]
src/intel/common/gen_sample_positions.h
src/intel/common/meson.build