Skip to content

iris: Use util packing fns in convert_clear_color

A couple things happen as a result of this:

  1. This function is more consistent. It aims to clamp clear color ranges to format-dependent values, but it didn't clamp the upper ranges of 10-bit and 11-bit floats (64512 and 65024 respectively). Those are handled now.

  2. The clear colors are quantized. The quantization method seems to differ from what the HW uses for slow (and obviously fast) clears. Due to this change in quantization method, iris starts failing dEQP-EGL.functional.image.modify.renderbuffer_rgba4_renderbuffer_clear_color. That's okay however. That test was removed from the mustpass list because of threshold issues (see egl-test-issues.txt).

Edited by Nanley Chery

Merge request reports