Mesa (master): radv: Also set DCC params for sampling for input attachment usage.

Bas Nieuwenhuizen bnieuwenhuizen at kemper.freedesktop.org
Sat Dec 30 00:16:02 UTC 2017


Module: Mesa
Branch: master
Commit: b0a6fd0274640b5e8ccfc95df0ed7383109f8cad
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0a6fd0274640b5e8ccfc95df0ed7383109f8cad

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Fri Dec 29 23:26:33 2017 +0100

radv: Also set DCC params for sampling for input attachment usage.

Those are implemented as texture sampling, so we need to make the
texture TC-compatible too.

Fixes: 34d23e82ca9 "radv: set some dcc parameters depending on if texture will be sampled"
Reviewed-by: Fredrik Höglund <fredrik at kde.org>

---

 src/amd/vulkan/radv_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 2a249b95e2..130b4222bc 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -3181,7 +3181,8 @@ radv_initialise_color_surface(struct radv_device *device,
 				max_uncompressed_block_size = V_028C78_MAX_BLOCK_SIZE_128B;
 		}
 
-		if (iview->image->usage & (VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT)) {
+		if (iview->image->usage & (VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
+		                           VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT)) {
 			independent_64b_blocks = 1;
 			max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_64B;
 		} else




More information about the mesa-commit mailing list