[PATCH i-g-t 13/37] lib/rendercopy: Use the proper compression format for 16bpc on dg2/lnl+
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Tue Aug 27 16:25:45 UTC 2024
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
On 3.7.2024 2.27, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Setup the dg2/lnl+ compression format correctly for 16bpc formats.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> lib/rendercopy_gen9.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
> index b871a4b3dae1..ae4bb2606125 100644
> --- a/lib/rendercopy_gen9.c
> +++ b/lib/rendercopy_gen9.c
> @@ -149,6 +149,8 @@ static const uint32_t xe2_render_copy[][4] = {
> static uint32_t lnl_compression_format(const struct intel_buf *buf)
> {
> switch (buf->bpp) {
> + case 64:
> + return 0x7; /* CMF_R16_G16_B16_A16 */
> case 32:
> if (buf->depth == 30)
> return 0x3; /* CMF_R10_G10_B10_A2 */
> @@ -163,6 +165,8 @@ static uint32_t lnl_compression_format(const struct intel_buf *buf)
> static uint32_t dg2_compression_format(const struct intel_buf *buf)
> {
> switch (buf->bpp) {
> + case 64:
> + return 0x5;
> case 32:
> if (buf->depth == 30)
> return 0xc;
More information about the igt-dev
mailing list