a0bb9cb6d8
There were a couple issues in iris_resource_prepare_render(): * It previously assumed that the sampler would always look at the raw dwords for 32bpc formats. However, the sampler only does this on gfx12.0 for R32 formats (not RG32 formats for example). Update the comments to reflect this. * It only initialized the clear color if the render_format was non-32bpc. However, initialization is still needed outside of this case because a subsequent sampling operation may use a view format which looks at the sampler field. Check for the FCV aux-usage instead of the render format's number of bits-per-channel to fix this. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35329>