diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-16 09:37:56 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-16 09:37:56 +0200 |
commit | 361d549f8762e36bca787ec7ec237f7827b0a4a5 (patch) | |
tree | 75dac88c499fa22d7120ef0f61d48f247d0112e9 /src/amd/vulkan/radv_image.c | |
parent | 556c29943054fad4867c722c5f5cb57be6f7863a (diff) |
Revert "radv/gfx10: don't set array pitch field on images"
It introduces too many regressions.
This reverts commit 6d50dcd80fc120fdabcd57ef576f3e45ea2724e4.
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 66a948fde4a..ccbec36849e 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -682,7 +682,7 @@ gfx10_make_texture_descriptor(struct radv_device *device, */ state[4] = S_00A010_DEPTH(type == V_008F1C_SQ_RSRC_IMG_3D ? depth - 1 : last_layer) | S_00A010_BASE_ARRAY(first_layer); - state[5] = S_00A014_ARRAY_PITCH(0) | + state[5] = S_00A014_ARRAY_PITCH(!!(type == V_008F1C_SQ_RSRC_IMG_3D)) | S_00A014_MAX_MIP(image->info.samples > 1 ? util_logbase2(image->info.samples) : image->info.levels - 1) | |