mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
radeonsi: set better default depth clear value
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9795>
This commit is contained in:
parent
3345e32de7
commit
4e35eb1d69
1 changed files with 5 additions and 0 deletions
|
|
@ -918,6 +918,11 @@ static struct si_texture *si_texture_create_object(struct pipe_screen *screen,
|
|||
tex->is_depth = util_format_has_depth(util_format_description(tex->buffer.b.b.format));
|
||||
tex->surface = *surface;
|
||||
|
||||
/* Use 1.0 as the default clear value to get optimal ZRANGE_PRECISION if we don't
|
||||
* get a fast clear.
|
||||
*/
|
||||
tex->depth_clear_value = 1.0;
|
||||
|
||||
/* On GFX8, HTILE uses different tiling depending on the TC_COMPATIBLE_HTILE
|
||||
* setting, so we have to enable it if we enabled it at allocation.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue