mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radv: improve rounding of zmin
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12388>
This commit is contained in:
parent
5ec6b6e9bb
commit
46d0126deb
1 changed files with 1 additions and 1 deletions
|
|
@ -888,7 +888,7 @@ radv_get_htile_fast_clear_value(const struct radv_device *device, const struct r
|
|||
uint32_t zmin, zmax;
|
||||
|
||||
/* Convert the depth value to 14-bit zmin/zmax values. */
|
||||
zmin = ((value.depth * max_zval) + 0.5f);
|
||||
zmin = lroundf(value.depth * max_zval);
|
||||
zmax = zmin;
|
||||
|
||||
if (radv_image_tile_stencil_disabled(device, image)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue