i965/clear: clear_value better precision
authorSergii Romantsov <sergii.romantsov@globallogic.com>
Fri, 12 Jul 2019 13:46:45 +0000 (16:46 +0300)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 2 Aug 2019 14:25:34 +0000 (14:25 +0000)
commita86eccfb78092493b3999849db62613838951756
treee60b52b727da577c4ea5578baf65384e2f60583f
parente8110e51c6f5ca369100b4771eaaa4e5cbe9e0df
i965/clear: clear_value better precision

Test-case with depth-clear 0.5 and format
MESA_FORMAT_Z24_UNORM_X8_UINT fails due inconsistent
clear-value of 0.4999997.
Maybe its better to improve?

CC: Jason Ekstrand <jason.ekstrand@intel.com>
Fixes: 0ae9ce0f29ea (i965/clear: Quantize the depth clear value based on the format)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111113
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_clear.c