projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
556c299
)
Revert "radv/gfx10: don't set array pitch field on images"
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Tue, 16 Jul 2019 07:37:56 +0000
(09:37 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Tue, 16 Jul 2019 07:37:56 +0000
(09:37 +0200)
It introduces too many regressions.
This reverts commit
6d50dcd80fc120fdabcd57ef576f3e45ea2724e4
.
src/amd/vulkan/radv_image.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_image.c
b/src/amd/vulkan/radv_image.c
index 66a948fde4af0434a96b1a723ec9aed8673c1c4a..ccbec36849e9f1f81a07b240f6e89db43b30c390 100644
(file)
--- 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) |