Skip to content

iris: Don't memset the clear color BO during aux init

Nanley Chery requested to merge nchery/mesa:perf/iris-cc-unknown into main

What does this MR do and why?

The clear color BO is sometimes getting unnecessarily zeroed. For
example, if the resource will be fast-cleared, the app may pick a
non-zero color, causing the initial memset to be unneeded.  So, skip the
memset and mark the clear color as unknown if it has not been freshly
allocated. For now, we leave the memsets on imported dmabufs alone for
simplicity.

On non-small BAR ACM systems, this also allows internal resources using
compression to be created without executing an IOCTL for memory mapping.

Contains a commit which helps !25545.

Merge request reports