Re: [Mesa-dev] [PATCH 0/5] nouveau: Improved format modifier support

2020-02-05 Thread James Jones
Thanks, now available as https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3724 -James On 2/5/20 1:45 PM, Jason Ekstrand wrote: FYI: GitLab merge requests are the preferred way to send patches these days. --Jason On February 5, 2020 21:52:25 James Jones wrote: This series pulls in

Re: [Mesa-dev] [PATCH 0/5] nouveau: Improved format modifier support

2020-02-05 Thread Jason Ekstrand
FYI: GitLab merge requests are the preferred way to send patches these days. --Jason On February 5, 2020 21:52:25 James Jones wrote: This series pulls in the proposed DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D() format modifier macro and wires it up in the nouveau nvc0 driver. In doing so, it imp

[Mesa-dev] [PATCH 2/5] nouveau: Stash supported sector layout in screen

2020-02-05 Thread James Jones
Older Tegra GPUs use a different sector bit swizzling layout than desktop and Xavier GPUs. Hence their format modifiers must be differentiated from those of other GPUs. As a precursor to supporting more expressive block linear format modifiers, deduce the sector layout used for a given GPU from it

[Mesa-dev] [PATCH 1/5] drm-uapi: Update headers from nouveau/linux-5.6

2020-02-05 Thread James Jones
Copy latest drm_fourcc.h from nouveau/linux-5.6 XXX - Update this with final commit ID/info commit: d8a841ff4f4cbb31dd0dfd037399421969837730 Author: James Jones Date: Tue Aug 6 17:10:10 2019 -0700 drm: Generalized NV Block Linear DRM format mod Signed-off-by: James Jones --- include/drm-ua

[Mesa-dev] [PATCH 5/5] nouveau: Use format modifiers in buffer allocation

2020-02-05 Thread James Jones
The nvc0 nouveau backend already claimed to support format modifiers, but in practice it ignored them when allocating buffers outside of a perfunctory check for the linear modifier in the first element of the format modifier list. This change deduces the supported modifiers, if any, for a given mi

[Mesa-dev] [PATCH 3/5] nouveau: Use DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D

2020-02-05 Thread James Jones
Replace existing usage of the NVIDIA_16BX2_BLOCK format modifiers with parameterized use of the more general macro. Nouveau will now report support for slightly different modifiers depending on whether the underlying chip is a tegra GPU or not, and will potentially report valid format modifiers fo

[Mesa-dev] [PATCH 4/5] nouveau: no modifier != the invalid modifier

2020-02-05 Thread James Jones
Other drivers fail resource allocation when a list of modifiers for the resource is provided but none are supported. This includes cases when the never- supported DRM_FORMAT_MOD_INVALID modifier is explicitly passed. To enable matching that functionality in nouveau, use an empty modifier list rath

[Mesa-dev] [PATCH 0/5] nouveau: Improved format modifier support

2020-02-05 Thread James Jones
This series pulls in the proposed DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D() format modifier macro and wires it up in the nouveau nvc0 driver. In doing so, it improves the existing format modifier code to behave more like other format-modifier-capable drivers, and is written in such a way that it sho

[Mesa-dev] [PATCH] gallium: Add format modifier aux plane query

2020-02-05 Thread James Jones
Rather than hard-code a list of all the format modifiers supported by any gallium driver in the dri state tracker, add a screen proc that queries the number of auxiliary planes required for a given modifier+format pair. Since the only format modifier that requires auxiliary planes currently is the