diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-09-07 12:17:09 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-03-14 09:04:04 +0100 |
commit | 2865fde730485aaa216962587412f3634b49e548 (patch) | |
tree | f8aac28f91026b69495414a80a36c39b3c7e05d6 | |
parent | e063691eba37de43a182d459d958693bed83651a (diff) |
DBG add no_tc_compatible_{mipmaps,flat}
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 125e7ef408..e0d452f5a2 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -1445,6 +1445,13 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen, templ->nr_samples <= 1 && /* TC-compat HTILE is less efficient with MSAA */ util_format_is_depth_or_stencil(templ->format); + if (templ->last_level >= 1 && + debug_get_bool_option("no_tc_compatible_mipmaps", false)) + tc_compatible_htile = false; + if (templ->last_level == 0 && + debug_get_bool_option("no_tc_compatible_flat", false)) + tc_compatible_htile = false; + int r; r = r600_init_surface(sscreen, &surface, templ, |