projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb01b20
)
radv: Pass DCC alignment to application.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Mon, 6 Feb 2017 23:45:11 +0000
(
00:45
+0100)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Tue, 7 Feb 2017 00:19:22 +0000
(
01:19
+0100)
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
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 202f460aafe574011b3a8341fdf1d0b5ee4d1a91..1581645b18d1037e5a82361691f99ebe076080db 100644
(file)
--- a/
src/amd/vulkan/radv_image.c
+++ b/
src/amd/vulkan/radv_image.c
@@
-582,6
+582,7
@@
radv_image_alloc_dcc(struct radv_device *device,
/* + 8 for storing the clear values */
image->clear_value_offset = image->dcc_offset + image->surface.dcc_size;
image->size = image->dcc_offset + image->surface.dcc_size + 8;
+ image->alignment = MAX2(image->alignment, image->surface.dcc_alignment);
}
static unsigned