Skip to content

util,radeonsi: add new simple PIPE_FORMATs + AMD MSAA resolving with RGB->BGR swizzle

Marek Olšák requested to merge mareko/mesa:resolve-bgr into master

New formats:

   PIPE_FORMAT_B8G8R8X8_SNORM,
   PIPE_FORMAT_B8G8R8X8_UINT,
   PIPE_FORMAT_B8G8R8X8_SINT,
   PIPE_FORMAT_A8R8G8B8_SNORM,
   PIPE_FORMAT_A8R8G8B8_SINT,
   PIPE_FORMAT_X8R8G8B8_SNORM,
   PIPE_FORMAT_X8R8G8B8_SINT,
   PIPE_FORMAT_R5G5B5X1_UNORM,
   PIPE_FORMAT_X1R5G5B5_UNORM,
   PIPE_FORMAT_R4G4B4X4_UNORM,
   PIPE_FORMAT_B10G10R10X2_SNORM,
   PIPE_FORMAT_R5G6B5_SRGB,

Those formats are complements to existing formats with swapped R and B channels. It enables a complete implementation of the new util_format_rgb_to_bgr helper (added by this MR).

The last commit adds RGB->BGR swizzling into the MSAA resolving fast path in radeonsi.

Edited by Marek Olšák

Merge request reports

Loading