68d70fb969
Rather than hard-code a list of all the format modifiers supported by any gallium driver and the number of aux planes they require in the dri state tracker, add a screen proc that queries the number of planes required for a given modifier+format pair. Since the only format modifiers that require auxiliary planes currently are the iris driver's I915_FORMAT_MOD_Y_TILED_CCS, I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS, and I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS, the absence of the screen proc implies zero aux planes for all of the screen's supported modifiers. Hence, when a driver does not expose the proc, derive the number of planes directly from the format. Signed-off-by: James Jones <jajones@nvidia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3723> |
||
---|---|---|
.. | ||
cso | ||
context.rst | ||
cso.rst | ||
debugging.rst | ||
distro.rst | ||
format.rst | ||
glossary.rst | ||
index.rst | ||
intro.rst | ||
pipeline.txt | ||
postprocess.rst | ||
resources.rst | ||
screen.rst | ||
tgsi.rst |