From de0f226f843419a06a0fc94ac4d1a459d35500b5 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Mon, 19 Aug 2024 12:31:01 +0200 Subject: [PATCH] nvk: do not overwrite test cases without this the second test case was just overwritten by the following cases Fixes: 6a84d5439d2 ("nvk: Move the ANTI_ALIAS_CONTROL logic to the MME") Reviewed-by: Konstantin Seurer Part-of: --- src/nouveau/vulkan/nvk_cmd_draw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nouveau/vulkan/nvk_cmd_draw.c b/src/nouveau/vulkan/nvk_cmd_draw.c index ed5096a3f61..2e9f9d2cdb7 100644 --- a/src/nouveau/vulkan/nvk_cmd_draw.c +++ b/src/nouveau/vulkan/nvk_cmd_draw.c @@ -2347,6 +2347,7 @@ const struct nvk_mme_test_case nvk_mme_set_anti_alias_tests[] = {{ { NV9097_LOAD_CONSTANT_BUFFER(3), 0x800040 }, { } }, +}, { /* Single sample, minSampleShading = 0.25 */ .init = (struct nvk_mme_mthd_data[]) { { NVK_SET_MME_SCRATCH(ANTI_ALIAS), 0xf }, @@ -2364,6 +2365,7 @@ const struct nvk_mme_test_case nvk_mme_set_anti_alias_tests[] = {{ { NV9097_LOAD_CONSTANT_BUFFER(3), 0x800040 }, { } }, +}, { /* 8 samples, minSampleShading = 0.5 */ .init = (struct nvk_mme_mthd_data[]) { { NVK_SET_MME_SCRATCH(ANTI_ALIAS), 0x1 }, @@ -2381,6 +2383,7 @@ const struct nvk_mme_test_case nvk_mme_set_anti_alias_tests[] = {{ { NV9097_LOAD_CONSTANT_BUFFER(3), 0xc000c0 }, { } }, +}, { /* 8 samples, minSampleShading = 0.25 */ .init = (struct nvk_mme_mthd_data[]) { { NVK_SET_MME_SCRATCH(ANTI_ALIAS), 0x30 },