Mesa (master): radv: only configure the CMASK tiling for TC-compat on GFX8

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Mar 17 09:04:32 UTC 2021


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Mar  3 17:21:16 2021 +0100

radv: only configure the CMASK tiling for TC-compat on GFX8

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9415>

---

 src/amd/vulkan/radv_device.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index de96308d7f8..043f763d83c 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -6978,10 +6978,12 @@ radv_initialise_color_surface(struct radv_device *device,
 			 */
 			cb->cb_color_info |= S_028C70_FMASK_COMPRESS_1FRAG_ONLY(1);
 
-			/* Set CMASK into a tiling format that allows the
-			 * texture block to read it.
-			 */
-			cb->cb_color_info |= S_028C70_CMASK_ADDR_TYPE(2);
+			if (device->physical_device->rad_info.chip_class == GFX8) {
+				/* Set CMASK into a tiling format that allows
+				 * the texture block to read it.
+				 */
+				cb->cb_color_info |= S_028C70_CMASK_ADDR_TYPE(2);
+			}
 		}
 	}
 



More information about the mesa-commit mailing list