summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-08-21 08:27:25 +0100
committerEmil Velikov <[email protected]>2017-08-29 19:14:12 +0100
commitdbca342014f9c0aa1bda643a7fecf0371ec639a2 (patch)
tree9eb4d468ae935c4b4723e524883fa318132ada16 /src/amd/vulkan
parentc0c03d000326b46405c97a0f6fc9c434476e5393 (diff)
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 <[email protected]> Cc: "17.2" <[email protected]> Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit df09f1f3cd5110874899ed0f4b4c33ba9b006c50)
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_image.c2
1 files changed, 1 insertions, 1 deletions
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);