Skip to content

iris: Stop quantizing the depth clear value

Nanley Chery requested to merge nchery/mesa:fix/z-color-conv into master

This function has a number of problems:

  1. It performs 24-bit quantization on a format which shouldn't be quantized at all (PIPE_FORMAT_Z32_FLOAT_S8X24_UINT).
  2. The algorithm seems to create a different pixel than HW would in the absence of this SW conversion. This can cause issues with depth testing.

Instead of adding more code to deal with these issues, delete the quantization code.

This code originated from i965 (0ae9ce0f) and helped to avoid a regression in Lightsmark 2008. This change continues to avoid that regression because any new clear value is now casted from double to float before checking if the resource's clear value has changed.

Closes: #3783 (closed)

Merge request reports