From dbca342014f9c0aa1bda643a7fecf0371ec639a2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 21 Aug 2017 08:27:25 +0100 Subject: radv/gfx9: use total levels in texture descriptor We need to use all the levels when filling out the gfx9 descriptor. Reviewed-by: Bas Nieuwenhuizen Cc: "17.2" Signed-off-by: Dave Airlie (cherry picked from commit df09f1f3cd5110874899ed0f4b4c33ba9b006c50) --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/amd/vulkan') diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 964dc8f0a5e..88b36cee43f 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -415,7 +415,7 @@ si_make_texture_descriptor(struct radv_device *device, state[4] |= S_008F20_BC_SWIZZLE(bc_swizzle); state[5] |= S_008F24_MAX_MIP(image->info.samples > 1 ? util_logbase2(image->info.samples) : - last_level); + image->info.levels - 1); } else { state[3] |= S_008F1C_POW2_PAD(image->info.levels > 1); state[4] |= S_008F20_DEPTH(depth - 1); -- cgit v1.2.3