[Mesa-dev] [PATCH 0/9] panfrost: Initial sRGB support

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Tue Jun 18 14:59:44 UTC 2019


This series adds new flags and formats relevant to sRGB textures and
framebuffers, which cause quite a bit of refactoring. One 'hidden gem'
here is support for rendering to Mali's uncompressed tiled format
(Utgard-style tiling). I suppose earning those magic bits is a tradeoff
for not getting AFBC on sRGB FBOs.

Supporting sRGB in blend shaders will be a bit more work, out of scope
for this initial series.

I'm not terribly interested in sRGB quite yet (it's ES3 class), but it's
the one unadvertised feature required to bump our desktop version back
to GL 2.x, which matters for glamor.

Alyssa Rosenzweig (9):
  panfrost: Refactor texture targets
  panfrost: Decode rendering block type
  panfrost: Implement tiled rendering
  panfrost: Add sRGB render target flag
  panfrost: Implement sRGB texturing
  panfrost: Specify sRGB in the render target
  panfrost: Enable sRGB fixed-function blending
  panfrost: Disable AFBC on sRGB buffers
  panfrost: Enable sRGB

 .../drivers/panfrost/include/panfrost-job.h   | 44 ++++++++++++-----
 .../drivers/panfrost/midgard/disassemble.c    | 12 +++--
 .../drivers/panfrost/midgard/midgard.h        |  9 ++--
 .../panfrost/midgard/midgard_compile.c        | 10 ++--
 src/gallium/drivers/panfrost/pan_afbc.c       |  7 +++
 src/gallium/drivers/panfrost/pan_context.c    | 44 ++++++++++++++++-
 src/gallium/drivers/panfrost/pan_mfbd.c       | 17 +++++--
 src/gallium/drivers/panfrost/pan_screen.c     |  4 --
 .../drivers/panfrost/pandecode/decode.c       | 47 +++++++++++++++++--
 9 files changed, 152 insertions(+), 42 deletions(-)

-- 
2.20.1



More information about the mesa-dev mailing list