Skip to contentSkip to conversation

AFBC versions modifiers

DISCUSSION Neil Armstrong 4 participants 5 messages Feb 26, 2019 – Mar 1, 2019

lore
Share & tools
lore
#0 lore raw

Hi Ayan,

Could you help distinguish which are the AFBC modifiers for each version of AFBC ?

The Amlogic SoCs embeds an AFBC 1.0 compatible decoder, then the newer SoCs embeds an AFBC 1.2 decoder, I assume the modifiers before the patch "drm/fourcc: Add modifier defininitions for AFBC 1.3" are valid for AFBC 1.2, but what is the subset for 1.0 and 1.1 ?

Thanks,
Neil

Signature · 8 lines
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Neil,

AFBC 1.0 does not support (ignoring common prefix AFBC_FORMAT_MOD_) BLOCK_SIZE_32x8, BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4 CBR, TILED, SC, DB and BCH modifiers.

AFBC 1.2 does not support BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4, DB and BCH modifiers.

Beyond that it's very hard to say. The AFBC version numbers refer to versions of the specification, but aren't very useful for describing the actual bitstream format. To determine which modifiers _are_ supported, you will really need to get technical documentation from the SoC vendor

Regards,
Ayan Kumar Halder

________________________________
From: Neil Armstrong <[email protected]>
Sent: Tuesday, February 26, 2019 2:15 PM
To: Ayan Halder; Liviu Dudau
Cc: DRI Development
Subject: AFBC versions modifiers

Hi Ayan,

Could you help distinguish which are the AFBC modifiers for each version of AFBC ?

The Amlogic SoCs embeds an AFBC 1.0 compatible decoder, then the newer SoCs embeds an AFBC 1.2 decoder, I assume the modifiers before the patch "drm/fourcc: Add modifier defininitions for AFBC 1.3" are valid for AFBC 1.2, but what is the subset for 1.0 and 1.1 ?

Thanks,
Neil

--
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com<http://www.baylibre.com>

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Hi,

Quoted 6 lines · Ayan Halder

Hi Neil,

AFBC 1.0 does not support (ignoring common prefix AFBC_FORMAT_MOD_) BLOCK_SIZE_32x8, BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4 CBR, TILED, SC, DB and BCH  modifiers.

AFBC 1.2 does not support BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4, DB and BCH modifiers.

It's useful

Quoted 3 lines

Beyond that it's very hard to say. The AFBC version numbers refer to versions of the specification, but aren't very useful for describing the actual bitstream format. To determine which modifiers _are_ supported, you will really need to get technical documentation from the SoC vendor

OK

Thanks,
Neil

Quoted 13 lines

Regards,
Ayan Kumar Halder

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*From:* Neil Armstrong <[email protected]>
*Sent:* Tuesday, February 26, 2019 2:15 PM
*To:* Ayan Halder; Liviu Dudau
*Cc:* DRI Development
*Subject:* AFBC versions modifiers

Hi Ayan,

Quoted 14 lines

Could you help distinguish which are the AFBC modifiers for each version of AFBC ?

The Amlogic SoCs embeds an AFBC 1.0 compatible decoder, then the newer SoCs embeds an AFBC 1.2 decoder, I assume the modifiers before the patch "drm/fourcc: Add modifier defininitions for AFBC 1.3" are valid for AFBC 1.2, but what is the subset for 1.0 and 1.1 ?

Thanks,
Neil

Signature · 4 lines
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com <http://www.baylibre.com>

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to Ayan Halder
Quoted 6 lines · Ayan Halder

Hi Neil,

AFBC 1.0 does not support (ignoring common prefix AFBC_FORMAT_MOD_) BLOCK_SIZE_32x8, BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4 CBR, TILED, SC, DB and BCH modifiers.

AFBC 1.2 does not support BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4, DB and BCH modifiers.

Would be great to add that to kernel comments in drm_fourcc.h ... -Daniel

Quoted 35 lines

Beyond that it's very hard to say. The AFBC version numbers refer to versions of the specification, but aren't very useful for describing the actual bitstream format. To determine which modifiers _are_ supported, you will really need to get technical documentation from the SoC vendor

Regards,
Ayan Kumar Halder

________________________________
From: Neil Armstrong <[email protected]>
Sent: Tuesday, February 26, 2019 2:15 PM
To: Ayan Halder; Liviu Dudau
Cc: DRI Development
Subject: AFBC versions modifiers

Hi Ayan,

Could you help distinguish which are the AFBC modifiers for each version of AFBC ?

The Amlogic SoCs embeds an AFBC 1.0 compatible decoder, then the newer SoCs embeds an AFBC 1.2 decoder, I assume the modifiers before the patch "drm/fourcc: Add modifier defininitions for AFBC 1.3" are valid for AFBC 1.2, but what is the subset for 1.0 and 1.1 ?

Thanks,
Neil

--
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com<http://www.baylibre.com>

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
Quoted 9 lines · Daniel Vetter
Quoted 6 lines · Ayan Halder

Hi Neil,

AFBC 1.0 does not support (ignoring common prefix AFBC_FORMAT_MOD_) BLOCK_SIZE_32x8, BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4 CBR, TILED, SC, DB and BCH modifiers.

AFBC 1.2 does not support BLOCK_SIZE_64x4, BLOCK_SIZE_32x8_64x4, DB and BCH modifiers.

Would be great to add that to kernel comments in drm_fourcc.h ...

Kind of ... :)

Like Ayan is saying, the numbers relate to the spec, not what silicon vendors implement. AFBC defines a set of "compression parameters" (for the lack of a better definition) and then various blocks implement the parameters that they need. Some might only encode buffers, in which case they will ignore or skip all the options related to decoding, but will still claim to be compliant with AFBC 1.x.

The best way to look at AFBC from an implementation PoV is to look at the modifiers and determine if they are supported by a certain silicon IP or not. The fact that a given modifier has been introduced by AFBC spec number 1.2 or 1.1 should not be relevant.

Best regards,
Liviu

Quoted 43 lines

-Daniel

Quoted 35 lines

Beyond that it's very hard to say. The AFBC version numbers refer to versions of the specification, but aren't very useful for describing the actual bitstream format. To determine which modifiers _are_ supported, you will really need to get technical documentation from the SoC vendor

Regards,
Ayan Kumar Halder

________________________________
From: Neil Armstrong <[email protected]>
Sent: Tuesday, February 26, 2019 2:15 PM
To: Ayan Halder; Liviu Dudau
Cc: DRI Development
Subject: AFBC versions modifiers

Hi Ayan,

Could you help distinguish which are the AFBC modifiers for each version of AFBC ?

The Amlogic SoCs embeds an AFBC 1.0 compatible decoder, then the newer SoCs embeds an AFBC 1.2 decoder, I assume the modifiers before the patch "drm/fourcc: Add modifier defininitions for AFBC 1.3" are valid for AFBC 1.2, but what is the subset for 1.0 and 1.1 ?

Thanks,
Neil

--
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com<http://www.baylibre.com>

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Signature · 12 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel